Kaynağa Gözat

test: suppress another warning by clang-cl

Michele Caini 2 yıl önce
ebeveyn
işleme
43c5c2dd0d
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  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;
     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) {
     basic_test_allocator &operator=(const basic_test_allocator &other) {
         // necessary to avoid call suppression
         // necessary to avoid call suppression
         base::operator=(other);
         base::operator=(other);