This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48206] Issue with using std::shared_ptr with custom equality operator and STL (gnu++0x)
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 19 Mar 2011 19:03:45 +0000
- Subject: [Bug c++/48206] Issue with using std::shared_ptr with custom equality operator and STL (gnu++0x)
- Auto-submitted: auto-generated
- References: <bug-48206-4@http.gcc.gnu.org/bugzilla/>
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