Hi again,
grad that's my problem.
ClassC ClassA and ClassB has actually nothing to do, except that one instance of it in member variable ClassA.
We, the constructor of ClassC implicitly called (first version), then I get an error later in the program, because I said was written in the memory variable destroyed (Debug led to the realization that it happened in the constructor of ClassC and m_set is a private variable of ClassC, has nothing to so with nothing really too ClassA or ClassB ).
I choose the variant pointer and call the constructor via "new on" does not happen.
Maybe it is just a compiler error or something. These memory errors are so often like searching for a needle in a haystack.
Or it may be that the real mistake happened somewhere else entirely and I now only have the memory somewhat restructured, so it happened to no longer "pops"?
I personally have always thought it was just as Croesus had said it:
Quote:
|
See no essential difference between the two versions: both times is called the constructor of ClassC, and implicitly at the first, second, when explicitly.
|
... and I have not found anything else.
But after this effect, I thought to myself, I ask for time with you, because maybe one of you ne other info. Man finally learns is never, eh .
So first thank you for your answers