How can I throw a static_assert if template of class A
is of a certain templated class NOTALLOWED
?
template<typename T>
struct NOTALLOWED{
};
template<typename T>
struct A{
// static_assert if T == NOTALLOWED<...> ??
}
// USING A< NOTALLOWED<int> > is not allowed for example
the template class A should stay as it is given.
I want to prevent A
taking a struct NOTALLOWED
as template parameter
Thanks a lot!