Browse Source

test: suppress another warning by clang-cl

Michele Caini 2 years ago
parent
commit
43c5c2dd0d
1 changed files with 5 additions and 0 deletions
  1. 5 0
      test/entt/common/basic_test_allocator.hpp

+ 5 - 0
test/entt/common/basic_test_allocator.hpp

@@ -16,6 +16,11 @@ struct basic_test_allocator: std::allocator<Type> {
 
     using std::allocator<Type>::allocator;
 
+    // necessary to avoid a warning by clang-cl :)
+    basic_test_allocator(const basic_test_allocator &other)
+        : base{other} {
+    }
+
     basic_test_allocator &operator=(const basic_test_allocator &other) {
         // necessary to avoid call suppression
         base::operator=(other);