libsigc++

sigc unbind? (or, deconstruct a functor?)

旧时模样 提交于 2019-12-13 04:35:14
问题 Suppose I have used sigc::bind to construct a callback functor. Suppose I have registered that callback with another class -- in my case it's a scheduling class. At the right time, the scheduling class will call my callback, with all the correctly-bound arguments. And that works fine. But suppose I want a debugging interface on that other class, that will give me my callbacks back (as data objects, that is, not by calling them). That is, in the case of the scheduling class, suppose I want a