Moved static_assert into template parameters with enable_if