summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/std/tuple
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-10 12:24:31 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-10 12:24:31 +0000
commit6cca087976d7165b6d90bf97fb9d679a2148d72d (patch)
tree6fc025711f46465bebca75f0dc679a685c871743 /libstdc++-v3/include/std/tuple
parent4f132c1138c85ae9eb745496144c58c96e55771c (diff)
downloadppe42-gcc-6cca087976d7165b6d90bf97fb9d679a2148d72d.tar.gz
ppe42-gcc-6cca087976d7165b6d90bf97fb9d679a2148d72d.zip
2010-06-10 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/tuple (tuple(const tuple&)): Define explicitly-defaulted. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Tweak dg-warning line number. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160539 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/std/tuple')
-rw-r--r--libstdc++-v3/include/std/tuple6
1 files changed, 2 insertions, 4 deletions
diff --git a/libstdc++-v3/include/std/tuple b/libstdc++-v3/include/std/tuple
index 027442ddd71..bc458f15ba4 100644
--- a/libstdc++-v3/include/std/tuple
+++ b/libstdc++-v3/include/std/tuple
@@ -238,8 +238,7 @@ namespace std
tuple(_UElements&&... __elements)
: _Inherited(std::forward<_UElements>(__elements)...) { }
- tuple(const tuple& __in)
- : _Inherited(static_cast<const _Inherited&>(__in)) { }
+ tuple(const tuple&) = default;
tuple(tuple&& __in)
: _Inherited(static_cast<_Inherited&&>(__in)) { }
@@ -321,8 +320,7 @@ namespace std
tuple(_U1&& __a1, _U2&& __a2)
: _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { }
- tuple(const tuple& __in)
- : _Inherited(static_cast<const _Inherited&>(__in)) { }
+ tuple(const tuple&) = default;
tuple(tuple&& __in)
: _Inherited(static_cast<_Inherited&&>(__in)) { }
OpenPOWER on IntegriCloud