How to handle illegal template arguments?

This is a discussion on How to handle illegal template arguments? within the C++ Programming forums, part of the General Programming Boards category; Is there some good way to handle illegal template arguments? Say for example you have a template class
Code:
template<int ...

There are forms of those kinds of forced errors where you can specify some text that will show up in the compiler error. Something like, "Value cannot add up to 53" cannot be converted to bool or something random like that. I know the Loki library uses that, and I'd imagine something similar would be available in Boost's library as well.