Does the order make any difference in performance?Code:class foo { public: foo(void) : f1("test"), f2(5){} private: string f1; int f2; } class bar { public: bar(void) : f2(5), f1("test"){} private: int f2; string f1; }
Also, any difference in this?
different compilers warn about these things, but I'm almost certain all compilers would be smart enough to do the != NULL implicitly.Code:void * ptr = NULL; if (ptr){ something } ... if (ptr != NULL) { something }




Reply With Quote