Boost logo

Boost :

Subject: Re: [boost] Is there BOOST_ENABLE_IF macro now?
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2013-08-19 15:00:30


On 19/08/13 17:41, Matt Calabrese wrote:
> 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.

Those tricks are fairly basic usages of the language, I think you should
be comfortable enough with such things if you're writing something as
dangerous as a template conversion operator.


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