boost::function / boost::signal convenience

12 Dec
2005
12 Dec
'05
1:26 p.m.
Hi, I'd like to write the "Preferred syntax" of a signal while including a header for a fixed number of parameters. This works for boost::function, but not for boost::signal. Surprisingly, it seems that signal1.hpp does only generate a signal1 template, in contrast to function1.hpp. :[ Couldn't that be aligned to boost::function? #include <boost/function/function1.hpp> typedef boost::function1<void, void> F1; // compiles typedef boost::function<void (void)> F2; // compiles #include <boost/signals/signal1.hpp> typedef boost::signal1<void, void> S1; // compiles typedef boost::signal<void (void)> S2; // does not compile -- David
7124
Age (days ago)
7124
Last active (days ago)
0 comments
1 participants
participants (1)
-
David Gruener