Answer by Mike Seymour for Aggregate initialization of non-POD class types?
You can aggregate-initialise any aggregate, whether or not it's POD. C++11 defines an aggregate thusly:[dcl.init.aggr] An aggregate is an array or a class with no user-provided constructors, no...
View ArticleAggregate initialization of non-POD class types?
Is it legal to aggregate initialize non-POD class types in ISO C++?For example if we have a structure with a single method like this:struct T{ operator double(); int a; int b;} ;And we initialize an...
View Article