Browse Source

test: scoped include

Michele Caini 2 years ago
parent
commit
68125c4187
2 changed files with 2 additions and 2 deletions
  1. 1 1
      test/entt/container/dense_map.cpp
  2. 1 1
      test/entt/container/dense_set.cpp

+ 1 - 1
test/entt/container/dense_map.cpp

@@ -3,7 +3,6 @@
 #include <functional>
 #include <iterator>
 #include <memory>
-#include <memory_resource>
 #include <string>
 #include <tuple>
 #include <utility>
@@ -1185,6 +1184,7 @@ TEST(DenseMap, ThrowingAllocator) {
 }
 
 #if defined(ENTT_HAS_TRACKED_MEMORY_RESOURCE)
+#    include <memory_resource>
 
 TEST(DenseMap, NoUsesAllocatorConstruction) {
     using allocator = std::pmr::polymorphic_allocator<std::pair<const int, int>>;

+ 1 - 1
test/entt/container/dense_set.cpp

@@ -3,7 +3,6 @@
 #include <functional>
 #include <iterator>
 #include <memory>
-#include <memory_resource>
 #include <string>
 #include <tuple>
 #include <utility>
@@ -1009,6 +1008,7 @@ TEST(DenseSet, ThrowingAllocator) {
 }
 
 #if defined(ENTT_HAS_TRACKED_MEMORY_RESOURCE)
+#    include <memory_resource>
 
 TEST(DenseSet, NoUsesAllocatorConstruction) {
     using allocator = std::pmr::polymorphic_allocator<int>;