Is there some good way to handle illegal template arguments? Say for example you have a template class
Code:
template<int x, int y> my_class {...}
and you don't want the sum of x and y to be 53 (just an example), or you have another class
Code:
template<class T> my_class_2 {...}
where you don't want T to be a floating point type? (Ideally using numeric_limits to validate T)
Is it possible to make the declarations
Code:
my_class<10, 43> a;
my_class_2<double> b;
create compilation errors because of the incompatible template arguments?