gcc/libstdc++-v3/testsuite/20_util/pair
Jonathan Wakely e182158261 PR libstdc++/86751 default assignment operators for std::pair
The solution for PR 77537 causes ambiguities due to the extra copy
assignment operator taking a __nonesuch_no_braces parameter. By making
the base class non-assignable we don't need the extra deleted overload
in std::pair. The copy assignment operator will be implicitly deleted
(and the move assignment operator not declared) as needed. Without the
additional user-provided operator in std::pair the ambiguity is avoided.

	PR libstdc++/86751
	* include/bits/stl_pair.h (__pair_base): New class with deleted copy
	assignment operator.
	(pair): Derive from __pair_base.
	(pair::operator=): Remove deleted overload.
	* python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer
	so that new base class isn't shown in GDB.
	* testsuite/20_util/pair/86751.cc: New test.
	* testsuite/20_util/pair/ref_assign.cc: New test.

From-SVN: r263185
2018-07-31 23:31:20 +01:00
..
astuple Update copyright years. 2018-01-03 11:03:58 +01:00
comparison_operators Update copyright years. 2018-01-03 11:03:58 +01:00
cons Update copyright years. 2018-01-03 11:03:58 +01:00
make_pair Update copyright years. 2018-01-03 11:03:58 +01:00
requirements Update copyright years. 2018-01-03 11:03:58 +01:00
1.cc Update copyright years. 2018-01-03 11:03:58 +01:00
2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
3.cc Update copyright years. 2018-01-03 11:03:58 +01:00
4.cc Update copyright years. 2018-01-03 11:03:58 +01:00
40925.cc Update copyright years. 2018-01-03 11:03:58 +01:00
44487.cc Update copyright years. 2018-01-03 11:03:58 +01:00
70437.cc Update copyright years. 2018-01-03 11:03:58 +01:00
79141.cc Update copyright years. 2018-01-03 11:03:58 +01:00
86751.cc PR libstdc++/86751 default assignment operators for std::pair 2018-07-31 23:31:20 +01:00
constexpr_get.cc Update copyright years. 2018-01-03 11:03:58 +01:00
moveable.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noexcept_move_assign.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noexcept_swap.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noncopyable.cc Update copyright years. 2018-01-03 11:03:58 +01:00
piecewise.cc Update copyright years. 2018-01-03 11:03:58 +01:00
piecewise2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
ref_assign.cc PR libstdc++/86751 default assignment operators for std::pair 2018-07-31 23:31:20 +01:00
swap.cc Update copyright years. 2018-01-03 11:03:58 +01:00
swap_cxx17.cc Update copyright years. 2018-01-03 11:03:58 +01:00
traits.cc Update copyright years. 2018-01-03 11:03:58 +01:00