Same here, we may use `BOOST_STATIC_ASSERT(dim == 3);`