Is there a way I can assert that two constant expressions are equal at compile time?
e.g. I want this to cause a compile-time error
enum { foo=263,
I suggest to take a look at the Eigen library static assert mechanism:
http://eigen.tuxfamily.org/dox/StaticAssert_8h_source.html