
There is a more up-to-date version of the ENABLE_IF family of macros in the boost sandbox (the enable_if directory). There is some brief (poor) quickbook-generated documentation that I wrote up that is also in the sandbox in the same directory, though I don't have it uploaded anywhere right now. In addition to the traditional enable_if functionality, there are also macros for expression-validity testing. Mathias, do you have any reason for the assertion that it's "unnecessarily inefficient" at compile time? Please post a comparison of compile-times and I'll optimize if necessary. Otherwise, for now I'd say just use the macros when you can and use std::enable_if or boost::enable_if if you have to. I've pretty much just used the macros for the past year or so. - Matt Calabrese On Sun, Aug 18, 2013 at 1:53 PM, Mathias Gaunard < mathias.gaunard@ens-lyon.org> wrote:
On 18/08/13 18:48, TONGARI J wrote:
I should refer to this:
http://lists.boost.org/**Archives/boost/2011/08/184468.**phphttp://lists.boost.org/Archives/boost/2011/08/184468.php
Of course it's for C++11 only...
Yes I've seen this. It's limited in somewhat unexpected ways, requires a lot of C++11 features to be correctly implemented, and also is unnecessarily inefficient at compile-time.
I see no compelling advantage to using it instead of less obscure, more flexible, more portable and more efficient solutions.
______________________________**_________________ Unsubscribe & other changes: http://lists.boost.org/** mailman/listinfo.cgi/boosthttp://lists.boost.org/mailman/listinfo.cgi/boost
-- -Matt Calabrese