23 Nov
2011
23 Nov
'11
2:45 p.m.
On 11/23/2011 03:34 PM, Allan Nielsen wrote:
What I would like is an interface where the following would be valid (much like boost function):
Interface< int (int, std::string )> if1(...) ;
I known this might not be easy or the intension of c++99, but I would like to give it a try anyway...
There is no particular problem doing that in C++98/03. You may want to take a look at http://www.boost.org/doc/libs/release/libs/function_types/doc/html/index.htm... It can extract the return type and convert the arguments to an MPL sequence.