Closed ecorm closed 9 years ago
Instead of complicating the Session API with dynamic/static variants of Session::subscribe and Session::enroll, simply provide an adapter functor which wraps a static slot and performs dynamic argument demarshalling.
Session::subscribe
Session::enroll
Example:
session->subscribe(Topic("foo"), staticSlot(&myCallHandler), yield);
Instead of complicating the Session API with dynamic/static variants of
Session::subscribe
andSession::enroll
, simply provide an adapter functor which wraps a static slot and performs dynamic argument demarshalling.Example: