|
Boost Users : |
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2007-11-28 08:52:54
Hicham Mouline wrote:
> hi,
>
> template <typename CT> class C {
> BOOST_STATIC_ASSERT(...);
> };
>
> class D;
>
> I would like to forbid the instantiation of C<D>.
>
> How can i compare CT with D to serve as the condition of the boost static assert=?
See
http://www.boost.org/doc/html/boost_typetraits/reference.html#boost_typetraits.is_same
You may also need to use other type_traits to remove CV and
reference/pointer qualifiers.
Jeff Flinn
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