#include <type_traits> int f(int); // we deduce the returning type of this function int main() { std::result_of<decltype(f)>::type x; }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:7:5: error: 'type' is not a member of 'std::result_of<int(int)>' std::result_of<decltype(f)>::type x; ^
Standard output is empty