From 61e5bcef2629e2d68b805a956a96fff264d4f74d Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 28 Jun 2025 01:59:49 +0500 Subject: Restructure dependencies and update to C++20 - Nuked static_assert from almost everywhere in the project - Nuked binary dependency support. Might add one later though - Separated dependency headers into a separate include subdirectory - Grafted a thirdpartylegalnotices.txt generator from RITEG - Pushed development snapshot version to 2126 (26th week of 2025) --- deps/include/entt/core/ident.hpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 deps/include/entt/core/ident.hpp (limited to 'deps/include/entt/core/ident.hpp') diff --git a/deps/include/entt/core/ident.hpp b/deps/include/entt/core/ident.hpp deleted file mode 100644 index 5944ea2..0000000 --- a/deps/include/entt/core/ident.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef ENTT_CORE_IDENT_HPP -#define ENTT_CORE_IDENT_HPP - -#include -#include -#include -#include "fwd.hpp" -#include "type_traits.hpp" - -namespace entt { - -/** - * @brief Type integral identifiers. - * @tparam Type List of types for which to generate identifiers. - */ -template -class ident { - template - [[nodiscard]] static constexpr id_type get(std::index_sequence) noexcept { - static_assert((std::is_same_v || ...), "Invalid type"); - return (0 + ... + (std::is_same_v...>>> ? id_type{Index} : id_type{})); - } - -public: - /*! @brief Unsigned integer type. */ - using value_type = id_type; - - /*! @brief Statically generated unique identifier for the given type. */ - template - static constexpr value_type value = get>(std::index_sequence_for{}); -}; - -} // namespace entt - -#endif -- cgit