ソースを参照

stl: include cmath.hpp

skypjack 2 日 前
コミット
879a7a301a

+ 1 - 0
CMakeLists.txt

@@ -199,6 +199,7 @@ if(ENTT_INCLUDE_HEADERS)
         stl/array.hpp
         stl/atomic.hpp
         stl/bit.hpp
+        stl/cmath.hpp
         stl/cstddef.hpp
         stl/cstdint.hpp
         stl/functional.hpp

+ 1 - 1
src/entt/container/dense_map.hpp

@@ -1,7 +1,6 @@
 #ifndef ENTT_CONTAINER_DENSE_MAP_HPP
 #define ENTT_CONTAINER_DENSE_MAP_HPP
 
-#include <cmath>
 #include <compare>
 #include <concepts>
 #include <functional>
@@ -13,6 +12,7 @@
 #include "../core/memory.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/bit.hpp"
+#include "../stl/cmath.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"

+ 1 - 1
src/entt/container/dense_set.hpp

@@ -1,7 +1,6 @@
 #ifndef ENTT_CONTAINER_DENSE_SET_HPP
 #define ENTT_CONTAINER_DENSE_SET_HPP
 
-#include <cmath>
 #include <compare>
 #include <concepts>
 #include <functional>
@@ -11,6 +10,7 @@
 #include "../core/compressed_pair.hpp"
 #include "../core/type_traits.hpp"
 #include "../stl/bit.hpp"
+#include "../stl/cmath.hpp"
 #include "../stl/cstddef.hpp"
 #include "../stl/iterator.hpp"
 #include "../stl/limits.hpp"

+ 1 - 0
src/entt/entt.hpp

@@ -73,6 +73,7 @@ namespace entt::stl {}
 #include "stl/array.hpp"
 #include "stl/atomic.hpp"
 #include "stl/bit.hpp"
+#include "stl/cmath.hpp"
 #include "stl/cstddef.hpp"
 #include "stl/cstdint.hpp"
 #include "stl/functional.hpp"

+ 12 - 0
src/entt/stl/cmath.hpp

@@ -0,0 +1,12 @@
+#ifndef ENTT_STL_CMATH_HPP
+#define ENTT_STL_CMATH_HPP
+
+#include <cmath>
+
+/*! @cond ENTT_INTERNAL */
+namespace entt::stl {
+
+} // namespace entt::stl
+/*! @endcond */
+
+#endif