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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
> http://www2.research.att.com/~bs/C++0xFAQ.html)

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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux