Boost logo

Boost Users :

From: Bruce Trask (Bruce.Trask_at_[hidden])
Date: 2005-04-12 13:56:17


Try boost::is_same<C1, C2>::value

> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Stephen Gross
> Sent: Tuesday, April 12, 2005 2:05 PM
> To: boost-users_at_[hidden]
> Subject: [Boost-users] Simple question: How to verify two types are the
> same?
>
> Hi all... I know this is a simple question, but I can't figure out which
> boost function to use. How do I find out if two types are the same type?
>
> For example:
>
> template<C1, C2> void compare()
> {
> if(boost::types_are_the_same<C1, C2>::result == true) ...
> }
>
> Thanks!
> --Steve
>
> Stephen Gross
> Case Western School of Medicine
> Cleveland, OH
>
> "The large print giveth and the small print taketh away." - Tom Waits
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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