Say I have a template class that makes multiple static_asserts:
template <class T>
class Foo
{
static_assert(!std::is_const<T>::value,"");
static_assert(!std::is_reference<T>::value,"");
static_assert(!std::is_pointer<T>::value,"");
//...<snip>...
}
Now say I have more template classes that need to make the same asserts.
Is there a way to make a static_assert
block reusable? A "static_assert function" if you will.