PR libstdc++/79141
commitcff710bd221703a5803fd0b149ed27f85276fbd9
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 2017 16:30:58 +0000 (3 16:30 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 2017 16:30:58 +0000 (3 16:30 +0000)
tree974dd12e35bad8b7b5027c7ceb58c8960623a9fa
parent52833c4a33629fbe1e67aaadac57bc361065e8ab
PR libstdc++/79141
* include/bits/stl_pair.h (__nonesuch_no_braces): New.
(operator=(typename conditional<
__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>::value,
const pair&, const __nonesuch&>::type)): Change __nonesuch
to __nonesuch_no_braces.
(operator=(typename conditional<
__not_<__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>>::value,
const pair&, const __nonesuch&>::type)): Likewise.
(operator=(typename conditional<
__and_<is_move_assignable<_T1>,
is_move_assignable<_T2>>::value,
pair&&, __nonesuch&&>::type)): Likewise.
* testsuite/20_util/pair/79141.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246653 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/testsuite/20_util/pair/79141.cc [new file with mode: 0644]