PR libstdc++/77537
commit2d0ecf5847036842b9584123aaf4af4800f5fefc
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2016 16:48:35 +0000 (21 16:48 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Sep 2016 16:48:35 +0000 (21 16:48 +0000)
tree1620641ceb06be29326134f342843d55e466d9e0
parent90f40f08ebcfe007339f3571b4c2b38745ef40d3
PR libstdc++/77537
Implement LWG 2729 for pair.
* include/bits/stl_pair.h (_PCC): New.
(_ConstructiblePair, _ImplicitlyConvertiblePair):
Turn into static member functions of _PCC.
(_MoveConstructiblePair, _ImplicitlyMoveConvertiblePair): Likewise.
(_PCCP): New.
(pair(const _T1&, const _T2&)): Adjust.
(_PCCFP): New.
(pair(const pair<_U1, _U2>&)): Adjust.
(pair(_U1&&, const _T2&)): Likewise.
(pair(const _T1&, _U2&&)): Likewise.
(pair(_U1&&, _U2&&)): Likewise.
(pair(pair<_U1, _U2>&&)): Likewise.
(operator=(const pair&)): Make conditionally deleted.
(operator=(pair&&)): Make conditionally suppressed.
(operator=(const pair<_U1, _U2>&)): Constrain.
(operator=(pair<_U1, _U2>&&): Likewise.
* include/std/type_traits (__nonesuch): New.
* testsuite/20_util/pair/traits.cc: New.

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