19 Oct
2013
19 Oct
'13
9:25 p.m.
Daniel James wrote:
Does anyone know which compiler is doing the right thing? I assume it's a Visual C++ bug, but I'm not sure.
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 (too early for that), Johannes Schaub has kindly pointed me to http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2238 and http://stackoverflow.com/q/14587436/34509 which deal with similar issues. (*) For the interested, this appears to call the InputIterator constructor, with predictable results.