Pointers, addresses, and new
I'm having a simple yet confusing problem. Say SomeClass is a class with lots of methods and fields and that uses multiple inheritance (could that be the problem ?):
On compilation, I get the following error :
somearray[index] = new SomeClass();
no match for 'Character & = Character *'
candidates are: class Character & Character::operator =(const Character &)
So now I understand I have an address on the left and a pointer on the right side, and that I can't assign one to the other since they're not of the same type. But I still can't
#1: Solve this problem (tadaa!)
#2: Plainly understand what the second entry in the error log means.
Anybody cares enough to help me ? Thanks for your time.