From 766909047b6873b5af3f9aa98c6ed8cd53c6cc54 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 7 Oct 2022 22:00:01 +0200 Subject: a --- main/main.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index a579f1eb..80d85eef 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -5,10 +5,10 @@ #include "chunk.hpp" #include "floor-mesh.hpp" #include "wall-mesh.hpp" -#include "compat/defs.hpp" -#include +#include "compat/enum-bitset.hpp" + #include -#include +#include #include #include #include @@ -17,17 +17,6 @@ namespace Magnum::Examples { -template -struct enum_bitset : std::bitset<(std::size_t)enum_type::MAX> { - static_assert(std::is_same_v>>); - static_assert(std::is_same_v>); - using std::bitset<(std::size_t)enum_type::MAX>::bitset; - constexpr bool operator[](enum_type x) const { return operator[]((std::size_t)x); } - constexpr decltype(auto) operator[](enum_type x) { - return std::bitset<(std::size_t)enum_type::MAX>::operator[]((std::size_t)x); - } -}; - struct app final : Platform::Application { using dpi_policy = Platform::Implementation::Sdl2DpiScalingPolicy; -- cgit v1.2.3