Jelajahi Sumber

stl: fix the last things with guarded specializations that are std:: only

skypjack 1 Minggu lalu
induk
melakukan
8c2cbe88e5

+ 2 - 0
src/entt/container/dense_map.hpp

@@ -1012,6 +1012,8 @@ private:
 } // namespace entt
 
 /*! @cond ENTT_INTERNAL */
+#include <utility>
+
 namespace std {
 
 template<typename Key, typename Value, typename Allocator>

+ 2 - 0
src/entt/container/table.hpp

@@ -420,6 +420,8 @@ private:
 } // namespace entt
 
 /*! @cond ENTT_INTERNAL */
+#include <utility>
+
 namespace std {
 
 template<typename... Container, typename Allocator>

+ 4 - 11
src/entt/core/compressed_pair.hpp

@@ -248,26 +248,19 @@ constexpr void swap(compressed_pair<First, Second> &lhs, compressed_pair<First,
 
 } // namespace entt
 
+/*! @cond ENTT_INTERNAL */
+#include <utility>
+
 namespace std {
 
-/**
- * @brief `stl::tuple_size` specialization for `compressed_pair`s.
- * @tparam First The type of the first element that the pair stores.
- * @tparam Second The type of the second element that the pair stores.
- */
 template<typename First, typename Second>
 struct tuple_size<entt::compressed_pair<First, Second>>: integral_constant<size_t, 2u> {};
 
-/**
- * @brief `stl::tuple_element` specialization for `compressed_pair`s.
- * @tparam Index The index of the type to return.
- * @tparam First The type of the first element that the pair stores.
- * @tparam Second The type of the second element that the pair stores.
- */
 template<size_t Index, typename First, typename Second>
 requires (Index <= 1u)
 struct tuple_element<Index, entt::compressed_pair<First, Second>>: conditional<Index == 0u, First, Second> {};
 
 } // namespace std
+/*! @endcond */
 
 #endif