I\'m looking for a way in C++ to extract the return type of a function (without calling it). I presume this will require some template magic.
float Foo(); i
Try something like this:
template struct magic_template {}; template struct magic_template { typedef T type; };