This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]