Standard says: Class members are initialized in the order of declaration. Fine.Code:CMyClass { Some_Type_1 obj1; Some_Type_2 obj2; public: CMyClass() : obj2(...), obj1(...){}; };
But, why is it not advisiable to do the above???
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 7 of 7
Threaded View
|
Click Here to Expand Forum to Full Width |