struct S
{
double operator()(char, int&);
};
int main()
{
boost::result_of<S(char, int&)>::type f = 3.14; // f has type double
}
OS : win7
compiler :gcc mingw4.6.2
error message :
error: no class template named 'result' in 'struct S'|
error: expected ';' before 'f'|
error: 'type' is not a member of 'boost::result_of<S(char, int&)>'|
according to
http://en.cppreference.com/w/cpp/types/result_of
This should work, what am I lack?Thanks