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 c++/48206] Issue with using std::shared_ptr with custom equality operator and STL (gnu++0x)


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-19 19:03:41 UTC ---
(In reply to comment #0)
> 
> It seems that even though the equality operator of shared_ptr should compare
> the underlying objects the program compiled by gcc compares the memory
> addresses.

No, the equality operator should compare the addresses


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