diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-07 13:00:48 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-01-07 13:00:48 +0000 |
commit | c28c8ec4abb433f0118b8772236ee3c66205a8f8 (patch) | |
tree | a32d9038bd4516cd7d8f67996c0e0278533185e2 /libstdc++-v3 | |
parent | 4f1351a20d48f29af9b858d0b2d03a362d294feb (diff) | |
download | gcc-c28c8ec4abb433f0118b8772236ee3c66205a8f8.tar.gz |
2009-01-07 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/38466
* include/bits/stl_pair.h: Document C++03 pair vs swap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143154 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_pair.h | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 11bf44eef6a..7027b77c44b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2009-01-07 Paolo Carlini <paolo.carlini@oracle.com> + + PR libstdc++/38466 + * include/bits/stl_pair.h: Document C++03 pair vs swap. + 2009-01-06 Benjamin Kosnik <bkoz@redhat.com> * src/locale_init.cc (locale::_S_initialize_once): Move construction diff --git a/libstdc++-v3/include/bits/stl_pair.h b/libstdc++-v3/include/bits/stl_pair.h index cf61b09945a..eb741e2384e 100644 --- a/libstdc++-v3/include/bits/stl_pair.h +++ b/libstdc++-v3/include/bits/stl_pair.h @@ -1,6 +1,6 @@ // Pair implementation -*- C++ -*- -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -184,6 +184,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std) #ifdef __GXX_EXPERIMENTAL_CXX0X__ /// See std::pair::swap(). + // Note: no std::swap overloads in C++03 mode, this has performance + // implications, see, eg, libstdc++/38466. template<class _T1, class _T2> inline void swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) |