aboutsummaryrefslogtreecommitdiff
path: root/gcc/go
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-07-31 23:31:20 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-07-31 23:31:20 +0100
commite182158261869320bc6fb1e972fd5a142359965e (patch)
treed7eb7ca6f086116d8255266c60687c914c552802 /gcc/go
parentff273400466f44c64a19b917151641706318c268 (diff)
downloadgcc-e182158261869320bc6fb1e972fd5a142359965e.zip
gcc-e182158261869320bc6fb1e972fd5a142359965e.tar.gz
gcc-e182158261869320bc6fb1e972fd5a142359965e.tar.bz2
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
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions