Ver Fonte

test: enclose expression in parentheses

skypjack há 1 mês atrás
pai
commit
e08302e169
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      test/common/throwing_allocator.hpp

+ 1 - 1
test/common/throwing_allocator.hpp

@@ -20,7 +20,7 @@ class throwing_allocator {
     friend class throwing_allocator;
     friend class throwing_allocator;
 
 
     template<typename Other>
     template<typename Other>
-    requires !std::is_void_v<Type> || std::constructible_from<std::allocator<Type>, std::allocator<Other>>
+    requires (!std::is_void_v<Type> || std::constructible_from<std::allocator<Type>, std::allocator<Other>>)
     throwing_allocator(int, const throwing_allocator<Other> &other)
     throwing_allocator(int, const throwing_allocator<Other> &other)
         : allocator{other.allocator},
         : allocator{other.allocator},
           config{other.config} {}
           config{other.config} {}