stl: drop ENTT_HAS_VERSION

This commit is contained in:
skypjack
2026-04-28 15:04:37 +02:00
parent a0c7b53e67
commit 377dde3e24
6 changed files with 12 additions and 25 deletions

View File

@@ -24,13 +24,9 @@
# define ENTT_CATCH if(false)
#endif
#ifdef ENTT_HAS_VERSION
# if defined(__cpp_consteval)
# define ENTT_CONSTEVAL consteval
# endif
#endif
#ifndef ENTT_CONSTEVAL
#if defined(__cpp_consteval)
# define ENTT_CONSTEVAL consteval
#else
# define ENTT_CONSTEVAL constexpr
#endif

View File

@@ -17,9 +17,8 @@ using std::less;
} // namespace entt::stl
#ifndef ENTT_FORCE_STL
# ifdef ENTT_HAS_VERSION
# if defined(__cpp_lib_ranges)
# define ENTT_HAS_IDENTITY
# if defined(__cpp_lib_ranges)
# define ENTT_HAS_IDENTITY
namespace entt::stl {
@@ -27,7 +26,6 @@ using std::identity;
} // namespace entt::stl
# endif
# endif
#endif

View File

@@ -19,9 +19,8 @@ using std::random_access_iterator_tag;
using std::reverse_iterator;
#ifndef ENTT_FORCE_STL
# ifdef ENTT_HAS_VERSION
# if defined(__cpp_lib_ranges)
# define ENTT_HAS_ITERATOR_CONCEPTS
# if defined(__cpp_lib_ranges)
# define ENTT_HAS_ITERATOR_CONCEPTS
using std::bidirectional_iterator;
using std::forward_iterator;
@@ -31,7 +30,6 @@ using std::output_iterator;
using std::random_access_iterator;
using std::sentinel_for;
# endif
# endif
#endif

View File

@@ -29,9 +29,8 @@ using std::uses_allocator_v;
} // namespace entt::stl
#ifndef ENTT_FORCE_STL
# ifdef ENTT_HAS_VERSION
# if defined(__cpp_lib_to_address)
# define ENTT_HAS_TO_ADDRESS
# if defined(__cpp_lib_to_address)
# define ENTT_HAS_TO_ADDRESS
namespace entt::stl {
@@ -39,7 +38,6 @@ using std::to_address;
} // namespace entt::stl
# endif
# endif
#endif

View File

@@ -3,10 +3,9 @@
#include "../stl/version.hpp"
#ifdef ENTT_HAS_VERSION
# if defined(__cpp_lib_ranges)
# include <ranges>
# define ENTT_HAS_RANGES
#if defined(__cpp_lib_ranges)
# include <ranges>
# define ENTT_HAS_RANGES
/*! @cond ENTT_INTERNAL */
namespace entt::stl::ranges {
@@ -17,7 +16,6 @@ using std::ranges::enable_view;
} // namespace entt::stl::ranges
/*! @endcond */
# endif
#endif
#endif

View File

@@ -3,7 +3,6 @@
#if __has_include(<version>)
# include <version>
# define ENTT_HAS_VERSION
#endif
#endif