
31 Dec
2008
31 Dec
'08
6:46 p.m.
AMDG Igor R wrote:
I'd like to define a trait that would evaluate to true for types that have some specific dependant type (DependentType), to use like this: template<class Type> func(int i, typename boost::enable_if
::type* dummy = 0) { } I tried this way:
template
struct HasDependentType : mpl::false_ {}; template<class Type> struct HasDependentType : mpl::true_ {}; ...but it appears incorrect (partial specialization is never ised).
http://www.boost.org/libs/mpl/doc/refmanual/has-xxx-trait-def.html In Christ, Steven Watanabe