Boost logo

Boost :

Subject: Re: [boost] "Simple C++11 metaprogramming"
From: pfultz2 (pfultz2_at_[hidden])
Date: 2015-06-02 07:42:49


> SFINAE friendliness can be quite a curse. It often transforms reasonably
> comprehensible error messages into full-scale Agatha Christie mysteries
> (the
> compiler output even being of comparable length). So I'm not convinced (at
> the moment) that a metaprogramming library should be SFINAE-friendly.

Yep, this is something where compilers need to improve. It should treat the
diagnostic to undefined template instantiation the same way as overload
resolution failure. This way you can have a trace back to the original
error,
instead of showing a bunch of unrelated errors.

Paul

--
View this message in context: http://boost.2283326.n4.nabble.com/Simple-C-11-metaprogramming-tp4676344p4676515.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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