I have this inheritance:
class SomeClass : public s_SomeStruct {}; // where s_SomeStruct is a classic C struct.
And these declarations:
SomeClass a;
SomeClass b;
s_SomeStruct c;
I don't know why case (2) not working:
a = b; // (1) works fine
a = c; // (2) DOESN't WORK!
c = a; // (3) Oh? It works!
Can I know why? And any simple way to cure this situation?
Thank you!