Boost logo

Boost :

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


On Mon, Aug 19, 2013 at 10:40 AM, Mathias Gaunard <
mathias.gaunard_at_[hidden]> wrote:

>
>> AFAIK this is indeed the only way to constrain template conversion
> operators with SFINAE.
> This is the real use of that trick. But why not just use that trick
> explicitly in that context?

If you have one approach that works all of the time, such as this macro,
you don't need to learn multiple tricks at all.

-- 
-Matt Calabrese

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