Opened 15 years ago

Closed 12 years ago

#1114 closed Feature Requests (wontfix)

Request for shared_ptr::type and shared_ptr::pointer

Reported by: emil@… Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Severity: Not Applicable
Keywords: Cc:

Description

Requesting two member functions to be added to shared_ptr:

template <class T>
void * shared_ptr<T>::pointer() const;

Returns the pointer passed to a shared_ptr constructor.

template <class T>
std::type_info const & shared_ptr<T>::type() const;

Returns the type_info for the type of the pointer passed to a shared_ptr constructor.

This is the discussion on the Boost mailing list that is relevant to this request: http://lists.boost.org/Archives/boost/2007/05/122018.php

Change History (2)

comment:1 by Peter Dimov, 15 years ago

Owner: set to Peter Dimov
Status: newassigned

comment:2 by Peter Dimov, 12 years ago

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