[Bug libstdc++/16415] New: swap overloading for std::vector<bool>::reference

Martin dot vGagern at gmx dot net gcc-bugzilla@gcc.gnu.org
Wed Jul 7 20:23:00 GMT 2004


>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



More information about the Gcc-bugs mailing list