BOOST_STATIC_ASSERT is a Boost macro to test assertions (that can be made at compile time) at compile time.
#include <boost/static_assert.hpp> int main() { BOOST_STATIC_ASSERT(16 * 16 == 256); BOOST_STATIC_ASSERT(sizeof(char) == 1); }
The C++11 standard has the keyword static_assert serving the same function.