c++ - Signals library which tracks slots lifetime automatically -
i need signals/slots c++ library 1 specific feature signals automatically disconnect slot when object slot destroyed.
boost::signals2 offers feature object created boost::shared_ptr , want maintain using std::shared_ptr everywhere. there alternative create work std::shared_ptr requires writing specialized templates , there no info how should , i'd prefer avoid (unless there code somewhere in internet, couldn't find it).
i know qt signals have feature, qt big utilize in every project.
according boost documentation (checked in 1.48.0), necessary template specialisations std::shared_ptr , std::weak_ptr exist in boost, std smart pointers should usable out of box signals2 (via slot::track_foreign).
c++ api signals signals-slots
No comments:
Post a Comment