Add parens around constraint in <memory>.
authorJason Merrill <jason@redhat.com>
Tue, 16 Jul 2019 08:54:47 +0000 (04:54 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 16 Jul 2019 08:54:47 +0000 (04:54 -0400)
C++20 concepts require parens around atomic constraints that are not
primary-expressions.

* include/std/memory (uses_allocator_construction_args): Add parens
around constraint.

From-SVN: r273515

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/memory

index 8e96a8984831fd11add3ee0e4a01598fa5e11cf1..a88e73836b220d4b02fa6e20f06120296abe2248 100644 (file)
@@ -1,3 +1,8 @@
+2019-07-16  Jason Merrill  <jason@redhat.com>
+
+       * include/std/memory (uses_allocator_construction_args): Add parens
+       around constraint.
+
 2019-07-12  Jonathan Wakely  <jwakely@redhat.com>
 
        * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
index 3660f4d86de4bc00231a443e87a4349488a5731b..3036802f8c3eb1c3013dc1720ad85087e5202694 100644 (file)
@@ -261,7 +261,7 @@ get_pointer_safety() noexcept { return pointer_safety::relaxed; }
     uses_allocator_construction_args(const _Alloc& __a,
                                     _Args&&... __args) noexcept
 #if __cpp_concepts
-    requires ! _Std_pair<_Tp>
+    requires (! _Std_pair<_Tp>)
 #endif
     {
       return std::__uses_alloc_args<_Tp>(__a, std::forward<_Args>(__args)...);