Boost logo

Boost :

Subject: Re: [boost] New, powerful way to use enable_if in C++0x
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-11 17:38:21


AMDG

On 04/11/2011 11:40 AM, Jeffrey Lee Hellrung, Jr. wrote:
> On Mon, Apr 11, 2011 at 11:15 AM, Matt Calabrese<rivorus_at_[hidden]> wrote:
>
>> However, in C++0x, there is a new way to use enable_if by altering neither
>> the function parameter list nor the specification of the return type. It
>> can
>> be used with operators, constructors, variadic function templates, and even
>> overloaded conversion operations (the latter of which was previously
>> considered impossible). The way to do it is with C++0x default function
>> template parameters.
>>
>> <snip> Should such use be added to the docs as supported behavior in 0x
>> compilers?
>>
>
> I think the case for conversion operators alone is compelling enough to
> warrant this use being mentioned in the Boost.EnableIf docs...
>

I agree. Matt, how about making a patch for
the docs?

In Christ,
Steven Watanabe


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