I am fairly novice at C++, and I'm having an error that I just don't understand.
class1* a = (class1*)p1;
class2* b = (class2*)p2;
a->foo(b);
The error is:
error: no matching function for call to 'a::foo(b*&)'
note: candidates are: void a::foo(const b&)
How do I get this right?