Opened 6 years ago

Last modified 6 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


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

The static_pointer_cast, const_pointer_cast, dynamic_pointer_cast methods in boost::shared_ptr allow this.

Change History (2)

comment:1 Changed 6 years ago by net147

The enhancement could also apply to wxObjectDataPtr.

comment:2 Changed 6 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 of TR1 draft.

Note: See TracTickets for help on using tickets.