
13 May
2006
13 May
'06
12:38 a.m.
Thank you for those pertinents remarks, i agree perfectly. I just want to train myself by investigating things. My wish is not to invent something i'm gonna be using everyday, only in my 100 lines main.cpp files ;)
At first glance this looks like a very complicated and expensive way of adding an OO layer over boost::function, which is *already* providing all the dynamic polymorphism you need. I could be missing something, but maybe you just need to get comfortable with using boost::function and operator() instead of GeneralFunctor and execute()? FWIW, there's a reason we do this stuff with operator(): it improves interoperability (e.g. with STL).
HTH,