Boost logo

Boost :

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


On 18/08/13 22:16, paul Fultz wrote:
>> From: TONGARI J
>> Hi folks,
>>
>> It's over 2 years since this post:
>> http://boost.2283326.n4.nabble.com/New-powerful-way-to-use-enable-if-in-C-0x-td3442723.html
>>
>> The macro looks sweet and I wonder if we have this macro in Boost in case
>> that I missed it.
>>
>
> This is nice for C++11 and conversion operators

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?


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