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 instance of it:
T tObj { 56, 92 };
using aggregate initialization. Is this legal?
Under Clang 3.7 it compiles fine although in VC++ 15 CTP 3 it doesn't.
Any insights on the question and a quote from the standard please?