replace COMPILE_ASSERT with static_assert
 .