$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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