Boost logo

Boost :

Subject: Re: [boost] traits classes vs. metafunctions
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2013-03-31 02:42:44


> > why did c++11 choose traits classes over metafunctions, even though
> > the concept of a metafunction was introduced in c++11 (<type_traits>).
>
> ...
>
> 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.

Regards,
Nate
                                               


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