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++
c++0x pods and constructors
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="Johannes Schaub (litb), post: 3967475"] That has nothing to do with it not being an aggregate. Non-PODs can be aggregates, of course. Please gimme some standard legalese to prove me wrong :) This is a C++0x feature, and it means that the user declared constructor will have a default implementation (which is trivial here). Yes, that's right (for c++03. For C++0x, "user declared" is changed to "user provided", as you can declare a constructor yourself, but then default it). So an aggregate can surely contain std::string :) However, where do i say something contradictory? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
c++0x pods and constructors
Top