stl: drop version.hpp - some things do not fit custom implementations, that's all

This commit is contained in:
skypjack
2026-04-29 13:25:51 +02:00
parent c11e6be645
commit 5fa956395a
8 changed files with 5 additions and 15 deletions

View File

@@ -216,7 +216,6 @@ if(ENTT_INCLUDE_HEADERS)
stl/type_traits.hpp
stl/utility.hpp
stl/vector.hpp
stl/version.hpp
tools/davey.hpp
entt.hpp
fwd.hpp

View File

@@ -5,7 +5,7 @@
# include <entt/ext/config.h>
#endif
#include "../stl/version.hpp"
#include <version>
#include "version.h"
// NOLINTBEGIN(cppcoreguidelines-macro-usage)

View File

@@ -1,7 +1,7 @@
#ifndef ENTT_CORE_RANGES_HPP
#define ENTT_CORE_RANGES_HPP
#include "../stl/version.hpp"
#include <version>
#if defined(__cpp_lib_ranges)
# include <ranges>

View File

@@ -1,7 +1,7 @@
#ifndef ENTT_ENTITY_RANGES_HPP
#define ENTT_ENTITY_RANGES_HPP
#include "../stl/version.hpp"
#include <version>
#if defined(__cpp_lib_ranges)
# include <ranges>

View File

@@ -90,5 +90,4 @@ namespace entt::stl {}
#include "stl/type_traits.hpp"
#include "stl/utility.hpp"
#include "stl/vector.hpp"
#include "stl/version.hpp"
// IWYU pragma: end_exports

View File

@@ -2,8 +2,8 @@
#define ENTT_STL_ITERATOR_HPP
#include <iterator>
#include <version>
#include "../config/config.h"
#include "version.hpp"
/*! @cond ENTT_INTERNAL */
namespace entt::stl {

View File

@@ -2,8 +2,8 @@
#define ENTT_STL_MEMORY_HPP
#include <memory>
#include <version>
#include "../config/config.h"
#include "version.hpp"
/*! @cond ENTT_INTERNAL */
namespace entt::stl {

View File

@@ -1,8 +0,0 @@
#ifndef ENTT_STL_VERSION_HPP
#define ENTT_STL_VERSION_HPP
#if __has_include(<version>)
# include <version>
#endif
#endif