Boost logo

Boost :

Subject: Re: [boost] [unordered] Visual C++ 2013 initializer_listoverloadfailure.
From: Daniel James (daniel_at_[hidden])
Date: 2013-10-19 18:04:24


On 19 October 2013 22:35, Peter Dimov <lists_at_[hidden]> wrote:
>> I was so intrigued by string{"a","b"} (*) that I asked on c++std-core, and
>
> while so far there's been no authoritative answer as to whether VC++ is
> right or not...
>
> Johannes Schaub again kindly points us out to 13.3.3.2/3 last bullet:
>
> — List-initialization sequence L1 is a better conversion sequence than
> list-initialization sequence L2 if L1 converts to std::initializer_list<X>
> for some X and L2 does not.
>
> which means that g++ and clang are right and VC++ is wrong in this specific
> case.

Thanks, I'll try to work round it later this week.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk