This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16415] New: swap overloading for std::vector<bool>::reference
- From: "Martin dot vGagern at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 20:23:36 -0000
- Subject: [Bug libstdc++/16415] New: swap overloading for std::vector<bool>::reference
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>From gcc 3.2.3 to 3.3 the
inline void std::swap(_Bit_reference __x, _Bit_reference __y)
became a member of std::vector<bool>:
static void swap(reference __x, reference __y)
This
a) causes backward compatibility problems and
b) prevents one from writing generic code
In CVS, I see this difference between 1.11.2.3.2.1 and 1.18.
I do not know why the swap function overloading was removed, or if it in fact
never entered the main branch, but I suggest adding it again.
--
Summary: swap overloading for std::vector<bool>::reference
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Martin dot vGagern at gmx dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16415