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++/43917] [C++0x] std::swap not working



------- Comment #4 from redi at gcc dot gnu dot org  2010-04-28 18:40 -------
No, that's not what pair::swap looks like in 4.5.0, your installation is
broken. This is what I have in 4.5.0

      void
      swap(pair& __p)
      {
        using std::swap;
        swap(first, __p.first);
        swap(second, __p.second);
      }

Somehow you have a header from 4.4 in your 4.5 tree, or you have been manually
messing with headers


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43917


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