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++
Initializing a map...
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="Jeff Schwab, post: 3451700"] The proposal: [URL]http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2215.pdf[/URL] I didn't know about that. Very neat. I'm not thrilled with g++ warning me about: std::tr1::array<int, 42> = { 0 }; // g++ wants { { 0 } } It would bother me less if there were consistent syntax for primitive and UD types. That's a very good point, and is the reason my "not really initialization" solutions are inferior. Is the key stored as a char const* so that construction of the initializers does not require any run-time overhead? Does MapInit count as a POD type, and is there benefit to using POD initializers? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Initializing a map...
Top