The standard C++ default class assignment behavior is a member-by-member copy. The presence of this private assignment operator guarantees a compiler error message if you assign without the overridden operator. You must therefore provide an assignment operator in your derived class if you intend to assign objects of your derived class.
Re: I have problem to compile my code - don't see reason why - need help - i add the code.
Originally Posted by alex_gusev
if you perform anything which requires copy constructor and you haven't declared yours in the code, then you can get such error
If copy constructor is needed and was not implemented, compiler would flag error:
error C2558: class 'CMyFile' : no copy constructor available
It is hard to draw any conclusion but the problem is most likely not a header file; the real problem is created somewhere in the source files where you are trying to access something.
Yu should check what cpp is compiled just before this error is flagged.
The best would be if you post entire project.
There are only 10 types of people in the world: Those who understand binary and those who do not.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.