Opened 14 years ago

Closed 12 years ago

#1925 closed Feature Requests (wontfix)

sp_techniques suggestion

Reported by: Dave Abrahams Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.35.0 Severity: Optimization
Keywords: Cc:

Description

It might be good to show how you can generate a shared_ptr referring to a sub-object of the object that's actually managed. Something like:

shared_ptr<Inner> f(shared_ptr<Outer> p)
{
   return shared_ptr<Inner>(p, &p->inner);
}

Change History (3)

comment:1 by Peter Dimov, 14 years ago

Milestone: Boost 1.36.0Boost 1.37.0
Status: newassigned

comment:2 by Peter Dimov, 14 years ago

Milestone: Boost 1.37.0To Be Determined

comment:3 by Peter Dimov, 12 years ago

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.