and now ive found static_assert, beautiful