Ticket #11046 (confirmed enhancement)

Opened 4 years ago

Last modified 4 years ago

wxSharedPtr - static, const, dynamic cast

Reported by: net147 Owned by:
Priority: low Milestone:
Component: base Version: 2.9-svn
Keywords: shared_ptr std Cc:
Blocked By: Patch: no
Blocking:

Description

static, const and dynamic casting would be a useful feature that is currently missing in wxSharedPtr but present in the boost::shared_ptr implementation.

See:  http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/shared_ptr.htm.
The static_pointer_cast, const_pointer_cast, dynamic_pointer_cast methods in boost::shared_ptr allow this.

Change History

Changed 4 years ago by net147

The enhancement could also apply to wxObjectDataPtr.

Changed 4 years ago by vadz

  • keywords shared_ptr std added
  • status changed from new to confirmed

Yes, we should make wxSharedPtr compatible with tr1::shared_ptr. See 2.2.3.9 of  TR1 draft.

Note: See TracTickets for help on using tickets.