pointers - C++ - no matching function for call to <class method> -


I get the compiler error below with the following code.

  cube.cpp: 94: Error: To do a similar function for the call 'Animation :: Animate (CUBE_ARRAY & amp; uint8_t & amp; uint8_t & amp; CUBE_STATE & amp;) 'animation.h: 28: Attention: Candidates are: Virtual uint8_t Animation :: Animate (CUBE_ARRAY *, uint8_t  
  28 virtual uint8_t animate (:, uint8_t, CUBE_STATE)  

There is a class animation with a method CUBE_ARRAY * ARAP, UIT 8_T transition, UIT 8_T transot, CubaiMTSSTSTSTATE);

It is being said from the line:

  94 animation full = animation pointer - & gt; Animate (cubeArray, transIn, transOut, state); An example of   

animationPointer raindrops is defined by the class from which the legacy is defined to animation :

Animation Pointer = & amp; Rain drizzle;

And its basic definition is:

  animation * animation indicator;  

As far as understanding of my (limited!) Understanding becomes this should work: raindrops should be located at the address pointing to By animationPointer , and - & gt; then the result of the animate method should be given, so I am not sure why the compiler is looking at the call as a logic passed from the context.

What happens to the double deceptive is that I have a very similar code that is supposed to work (I do not have the test like this, it's an embedded application and I am changing the code Second from an MCU type).

After the

error message shows what you are supposed to do

  Animationcomplete = animationPointer- & gt; Animate (& amp; cubeArray, transIn, transOut, state);   

Cube .

Please note the applesand.

Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -