Re: question on std :: initializer_list

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

 



On 19 February 2014 09:31, Jonathan Wakely wrote:
> On 19 February 2014 09:29, Graziano Servizi wrote:
>> Hi, everybody.
>>
>> I would ask how to specialize the template class in subject.
>
> Don't.
>
> std::initializer_list is a magic type and if you try to specialize it
> then chaos will ensue.
>
> Just don't.

We're going to fix the standard to make it clear this is illegal:
http://cplusplus.github.io/LWG/lwg-active.html#2129




[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