Changing Buffer assert into a static_assert