replace STATIC_ASSERT with static_assert