diff options
| -rw-r--r-- | compat/enum-bitset.hpp | 2 | ||||
| -rw-r--r-- | editor/app.hpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/compat/enum-bitset.hpp b/compat/enum-bitset.hpp index 95c82ff7..1365b3fb 100644 --- a/compat/enum-bitset.hpp +++ b/compat/enum-bitset.hpp @@ -4,7 +4,9 @@ namespace floormat { template<typename Enum> +requires std::is_enum_v<Enum> struct enum_bitset : std::bitset<(std::size_t)Enum::MAX> { + using type = Enum; static_assert(std::is_same_v<std::size_t, std::common_type_t<std::size_t, std::underlying_type_t<Enum>>>); static_assert(std::is_same_v<Enum, std::decay_t<Enum>>); using std::bitset<(std::size_t)Enum::MAX>::bitset; diff --git a/editor/app.hpp b/editor/app.hpp index 17e648ef..f63f7014 100644 --- a/editor/app.hpp +++ b/editor/app.hpp @@ -65,9 +65,6 @@ struct app final : floormat_app static int run_from_argv(int argv, const char* const* argc); -private: - using tile_atlas_ = std::shared_ptr<tile_atlas>; - void maybe_initialize_chunk_(const chunk_coords& pos, chunk& c); void do_mouse_move(); |
