Opened 5 years ago

Last modified 5 years ago

#11046 confirmed enhancement

wxSharedPtr - static, const, dynamic cast

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

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 (2)

comment:1 Changed 5 years ago by net147

The enhancement could also apply to wxObjectDataPtr.

comment:2 Changed 5 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.