|
Boost Users : |
From: Bruce Trask (Bruce.Trask_at_[hidden])
Date: 2005-04-12 15:08:01
This works at compile time.
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Stephen Gross
> Sent: Tuesday, April 12, 2005 3:11 PM
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] Simple question: How to verify two types
> arethesame?
>
> >Try boost::is_same<C1, C2>::value
>
> I tried this, but I think it works at runtime, not compile time (using
> typeid(...)). I need to find a compile-time solution...
>
> --Steve
>
>
> _______________________________________________
> 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