gcc/libstdc++-v3/testsuite/20_util/pair
Ville Voutilainen c1e2889a32 re PR libstdc++/79141 (std::pair<int,int> p = {}; fails to compile due to ambiguous overload)
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.

From-SVN: r246653
2017-04-03 19:30:58 +03:00
..
astuple
comparison_operators
cons Add deduction guides for C++17 (P0433R2, partial) 2017-03-22 15:58:35 +00:00
make_pair
requirements
1.cc
2.cc
3.cc
4.cc
40925.cc
44487.cc
70437.cc
79141.cc re PR libstdc++/79141 (std::pair<int,int> p = {}; fails to compile due to ambiguous overload) 2017-04-03 19:30:58 +03:00
constexpr_get.cc
moveable.cc
noexcept_move_assign.cc
noexcept_swap.cc
noncopyable.cc
piecewise2.cc
piecewise.cc
swap_cxx17.cc
swap.cc
traits.cc