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++
How to initialise aggregate member?
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="Victor Bazarov, post: 2572968"] But in this case 'MyStruct' is not an aggregate any longer. If you decide to break the "aggregateness" of MyClass, then there is no need for the extra type name. Just do MyClass() : obj(5, 45.67) {} There is no need for it. Once it's removed, nothing to worry about. V [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
How to initialise aggregate member?
Top