evilrix.com
Determining if a C++ type is convertible to another at compile time
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are wr…