|
Boost Users : |
From: John Maddock (john_at_[hidden])
Date: 2008-05-28 05:23:24
Hansi wrote:
> Hello,
>
> Is it possible to use the type_traits library to detect if a template
> type is a template specialization from a specific type.
>
> In my case I want to detect the dependency of the endian class from
> the
> vault.
>
> e.g. something like that:
>
> template<typename myType>
> is_the_type(endian, myType)
You can't tell if an aribrary template is a specialization or the primary
template definition, but you can detect specific types with is_same, is that
what you wanted to do?
John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net