28 Oct
2005
28 Oct
'05
3:03 a.m.
Imperative way:
#include
#include #include template <class T> struct myClass { BOOST_MPL_ASSERT((boost::mpl::or_< boost::is_same
, boost::is_same , boost::is_same >)); ... // your class implementation here. };
to summarize my question, is there any way i can restrict the compiler to accept only few type names for my templated class (i.e., using standard c++ or boost)
HTH,
Ah.. Thank you, I was just thinking in the same lines. May be i should go over mpl more thoroughly. Surya