
19 Nov
2008
19 Nov
'08
2:51 p.m.
Hi, Reading http://www.boost.org/doc/libs/1_36_0/doc/html/function/reference.html it says: A function object f is compatible if for the given set of argument types Arg1, Arg2, ..., ArgN and a return type ResultType, the appropriate following function is well-formed: // if ResultType is not void ResultType foo(Arg1 arg1, Arg2 arg2, ..., ArgN argN) { return f(arg1, arg2, ..., argN); } // if ResultType is void ResultType foo(Arg1 arg1, Arg2 arg2, ..., ArgN argN) { f(arg1, arg2, ..., argN); } I believe the "If ResultType is void" is not needed. We can return void in C++. -Thorsten