19 Oct
2013
19 Oct
'13
9:35 p.m.
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.