Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
initialization of a const static float data member in a class
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Kai-Uwe Bux, post: 3566100"] [snip] Actually, I wonder where that assesment comes from. In my coding style (I do almost exclusively templated code), all code goes into header files. I rarely ever split declarations from definitions. Being forced to do that for static const members creates an imbalance in coding style that makes the non-hack ugly and the hack natural. I don't think it is a good idea for the standard to legislate style; and for templated code, the issue is more or less entirely a matter of style. Best Kai-Uwe Bux [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
initialization of a const static float data member in a class
Top