
7 Jun
2014
7 Jun
'14
1:35 p.m.
Eric Niebler wrote:
On 06/06/2014 02:53 PM, Peter Dimov wrote:
Andrey Semashev wrote:
I can reproduce it locally with clang 3.4. Shows only with -std=c++11 -stdlib=libc++. Trying to dig further.
Ah. Sneaky hobbits. Conforming extension my posterior. :-)
(Actually, it _is_ a conforming extension, by a strict reading of the standard. Still, I'd have preferred a little less cleverness.)
std::iterator_traits will be required to be SFINAE-friendly. See n3923:
No problem. SFINAE-friendly means replacing a "hard" compile-time error on iterator_traits<It>::iterator_category with a "soft" compile-time error. That's different from replacing a lack of an error with a "soft" compile-time error though.