Boost logo

Boost :

Subject: Re: [boost] traits classes vs. metafunctions
From: Evgeny Panasyuk (evgeny.panasyuk_at_[hidden])
Date: 2013-03-31 05:58:13


31.03.2013 10:42, Nathan Ridge wrote:

>> P.S. Have you seen what they did with enable_if?
>
> Do you mean that the standard version takes the condition as a boolean
> parameter rather than a type parameter? If so, that actually seems
> more natural to me.

I think bigger issue is that they didn't use template alias, which would
remove need for "typename [...]::type".
http://www.stroustrup.com/C++11FAQ.html#template-alias

-- 
Evgeny Panasyuk

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