Aleksey,
int main() { typedef void (*FType) (); ^
Should be
typedef void (FType) ();
Aha! I tested it and it was fine. :)
typedef typename boost::function_traits<FType> ::result_type return_type;
cin.get(); return 0; } ... Is he right? Is there anything particular I should had done, and I've not?
'function_traits' requires you to pass a _function type_, which is a different beast from a pointer to a function.
I see. You know for sure that we C/C++ programmers are "used to" work with function pointer (types), as this is how we pass them around, if any! (Excluding Functors, I mean.) Very nice answer indeed. Bunches of Thanks, Mery Chistmas, --Hossein __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail