Opened 14 years ago

Closed 11 years ago

#2603 closed Patches (fixed)

patch for owner_before and owner_less support with shared_ptr/weak_ptr

Reported by: Frank Mori Hess Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

I'm attaching files that add owner_before members to shared_ptr and weak_ptr, and add a boost::owner_less class that supports boost::shared_ptr and weak_ptr as described in n2637. There is also a test program for owner_less. These patches do NOT change the semantics of operator<(), as that would break a lot of code. It merely makes it easier to write code that will be portable across boost::shared_ptr and std::shared_ptr.

Attachments (3)

owner_before.patch (2.2 KB ) - added by Frank Mori Hess 14 years ago.
patch which adds owner_before members to shared_ptr and weak_ptr
owner_less.hpp (1.4 KB ) - added by Frank Mori Hess 14 years ago.
boost/owner_less.hpp
owner_less_test.cpp (1.8 KB ) - added by Frank Mori Hess 14 years ago.
libs/smart_ptr/test/owner_less_test.cpp

Download all attachments as: .zip

Change History (7)

by Frank Mori Hess, 14 years ago

Attachment: owner_before.patch added

patch which adds owner_before members to shared_ptr and weak_ptr

by Frank Mori Hess, 14 years ago

Attachment: owner_less.hpp added

boost/owner_less.hpp

by Frank Mori Hess, 14 years ago

Attachment: owner_less_test.cpp added

libs/smart_ptr/test/owner_less_test.cpp

comment:1 by Peter Dimov, 14 years ago

Milestone: Boost 1.38.0To Be Determined

comment:2 by Peter Dimov, 11 years ago

Status: newassigned

comment:3 by Peter Dimov, 11 years ago

(In [76111]) Creatively apply patch from #2603. Refs #2603.

comment:4 by Peter Dimov, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [76163]) Merge [76111] to release. Fixes #2603.

Note: See TracTickets for help on using tickets.