Subject: Re: [boost] Is there BOOST_ENABLE_IF macro now?
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2013-08-18 15:58:28


On Sun, Aug 18, 2013 at 3:41 PM, Matt Calabrese <rivorus_at_[hidden]> wrote:

> 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.
>

Woops, sorry for bottom-quoting in that reply. I notice I have some local
changes to the macros, I'll update the code and docs in the next few days
and also upload the docs somewhere.