Boost logo

Boost Users :

Subject: Re: [Boost-users] [type_traits] Checking for same class template
From: Edward Diener (eldiener_at_[hidden])
Date: 2010-06-18 14:42:40


On 6/18/2010 9:36 AM, Edward Diener wrote:
> The type_trait is_same<T,T> can be used to check if two types are the
> same. Is there a type_trait to check if two templates are the same ?
>
> A template class I am developing takes as a template parameter a
> template rather than a class and I would like to check, to be used in
> MPL, whether the template being passed as a template parameter is the
> same as another template.

I realized the answer to this after I posted it so no one need reply. I
can just create a type from the template and use is_same<T.T> to check
the types.


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