17 years, 11 months ago
Highlights
Quote:Original post by Evil SteveIn the first case, the compiler calls the copy constructor, not operator=, since the object is being assigned and constructed at the same time.I…
17 years, 11 months ago
Example code (I have declared operator= as a private method without implementing it): class Foo { public: private: Foo & operator= (const Foo & r); }; int main() { // ** Case 1:…
17 years, 11 months ago
Latest Activity
Quote:Original post by Evil SteveIn the first case, the compiler calls the copy constructor, not operator=, since the object is …
17 years, 11 months ago
Example code (I have declared operator= as a private method without implementing it): class Foo { public: private: Foo & …
17 years, 11 months ago