Re: gcc interprets C++0x initialization construct as function declaration‏

Jonathan Wakely
Wed Jan 5 00:40:00 GMT 2011

On 5 January 2011 00:30, Jeffrey Walton wrote:
> Try T t(S(1, 0.1));

That's not valid in C++03 or C++0x, S has no suitable constructor.

> I'm not sure C++0X would help (see Intializer Lists at

Initializer lists are exactly what's needed to make S{ 1, 0.1 } a
valid initialization.

More information about the Gcc-help mailing list