FITFLOP
Home

c++98 (2 post)


posts by category not found!

Why did C++03 allow data members with the same name as the class?

The Curious Case of C 03s Self Referential Data Members In C 03 a rather unusual quirk allowed data members within a class to share the same name as the class i

2 min read 06-10-2024 27
Why did C++03 allow data members with the same name as the class?
Why did C++03 allow data members with the same name as the class?

Prior to C++11, the 'one-definition rule' would have been broken by in-class member initialization of non-static and non-const variables. Why?

The One Definition Rule and In Class Initialization in C Prior to C 11 initializing non static and non const member variables within a class definition could le

2 min read 02-10-2024 33
Prior to C++11, the 'one-definition rule' would have been broken by in-class member initialization of non-static and non-const variables. Why?
Prior to C++11, the 'one-definition rule' would have been broken by in-class member initialization of non-static and non-const variables. Why?