
9 Jul
2004
9 Jul
'04
12:25 p.m.
Hello, I have the following problem: I want to add signals to an emitting class in a generic fashion. To add a signal data member for every signal type, I inherit privately from a list of signal types. I therefore use the mpl::inherit template. class Emitter: private boost::mpl::inherit< boost::signal<void (const Emitter&, int, int)>, // emitted when size changes boost::signal<void (const Emitter&, const char*)> // emitted when name changes > { public: }; Since I want some signals to be connected automatically, I need to iterate the list of signal types. Is it possible to get a mpl::list with all the types I used within mpl::inherit? Best regards and thanks in advance, Thomas Immich