Browse Source

stl: std::default_initializable

skypjack 3 weeks ago
parent
commit
adff45e6a3
2 changed files with 4 additions and 3 deletions
  1. 3 3
      src/entt/core/compressed_pair.hpp
  2. 1 0
      src/entt/stl/concepts.hpp

+ 3 - 3
src/entt/core/compressed_pair.hpp

@@ -21,7 +21,7 @@ struct compressed_pair_element {
 
     // NOLINTNEXTLINE(modernize-use-equals-default)
     constexpr compressed_pair_element() noexcept(stl::is_nothrow_default_constructible_v<Type>)
-    requires std::default_initializable<Type> {}
+    requires stl::default_initializable<Type> {}
 
     template<typename Arg>
     constexpr compressed_pair_element(Arg &&arg) noexcept(stl::is_nothrow_constructible_v<Type, Arg>)
@@ -52,7 +52,7 @@ struct compressed_pair_element<Type, Tag>: Type {
     using base_type = Type;
 
     constexpr compressed_pair_element() noexcept(stl::is_nothrow_default_constructible_v<base_type>)
-    requires std::default_initializable<Type>
+    requires stl::default_initializable<Type>
         : base_type{} {}
 
     template<typename Arg>
@@ -105,7 +105,7 @@ public:
      * are both at least default constructible.
      */
     constexpr compressed_pair() noexcept(stl::is_nothrow_default_constructible_v<first_base> && stl::is_nothrow_default_constructible_v<second_base>)
-    requires std::default_initializable<first_type> && std::default_initializable<second_type>
+    requires stl::default_initializable<first_type> && stl::default_initializable<second_type>
         : first_base{},
           second_base{} {}
 

+ 1 - 0
src/entt/stl/concepts.hpp

@@ -7,6 +7,7 @@
 namespace entt::stl {
 
 using std::constructible_from;
+using std::default_initializable;
 using std::derived_from;
 using std::invocable;
 using std::same_as;