r240507 - in /branches/gcc-6-branch/libstdc++-v...

ville@gcc.gnu.org ville@gcc.gnu.org
Mon Sep 26 19:56:00 GMT 2016


Author: ville
Date: Mon Sep 26 19:56:14 2016
New Revision: 240507

URL: https://gcc.gnu.org/viewcvs?rev=240507&root=gcc&view=rev
Log:
Backport from mainline
2016-09-21  Ville Voutilainen  <ville.voutilainen@gmail.com>

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.

Added:
    branches/gcc-6-branch/libstdc++-v3/testsuite/20_util/pair/traits.cc
Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog
    branches/gcc-6-branch/libstdc++-v3/include/bits/stl_pair.h
    branches/gcc-6-branch/libstdc++-v3/include/std/type_traits



More information about the Libstdc++-cvs mailing list