Commit e6c847fb by Jason Merrill Committed by Jason Merrill

Add parens around constraint in <memory>.

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
parent fd860f7d
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> 2019-07-12 Jonathan Wakely <jwakely@redhat.com>
* testsuite/29_atomics/atomic_float/1.cc: Fix comment. * testsuite/29_atomics/atomic_float/1.cc: Fix comment.
......
...@@ -261,7 +261,7 @@ get_pointer_safety() noexcept { return pointer_safety::relaxed; } ...@@ -261,7 +261,7 @@ get_pointer_safety() noexcept { return pointer_safety::relaxed; }
uses_allocator_construction_args(const _Alloc& __a, uses_allocator_construction_args(const _Alloc& __a,
_Args&&... __args) noexcept _Args&&... __args) noexcept
#if __cpp_concepts #if __cpp_concepts
requires ! _Std_pair<_Tp> requires (! _Std_pair<_Tp>)
#endif #endif
{ {
return std::__uses_alloc_args<_Tp>(__a, std::forward<_Args>(__args)...); return std::__uses_alloc_args<_Tp>(__a, std::forward<_Args>(__args)...);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment