prog.cpp:17: error: template argument 1 is invalid
prog.cpp:26: error: template argument 1 is invalid
prog.cpp:26: error: expected ‘,’ or ‘...’ before ‘&&’ token
prog.cpp: In member function ‘int scope_exit_helper::operator->*(F) const’:
prog.cpp:27: error: template argument 1 is invalid
prog.cpp:27: error: ‘forward’ is not a member of ‘std’
prog.cpp:27: error: ‘f’ was not declared in this scope
prog.cpp:27: error: ‘forward’ is not a member of ‘std’
prog.cpp:27: error: expected primary-expression before ‘>’ token
prog.cpp: In function ‘int main()’:
prog.cpp:48: error: ISO C++ forbids declaration of ‘scope_exit_48’ with no type
prog.cpp:48: error: expected primary-expression before ‘[’ token
prog.cpp:48: error: expected primary-expression before ‘]’ token
prog.cpp:48: error: expected ‘,’ or ‘;’ before ‘{’ token
prog.cpp:49: error: ISO C++ forbids declaration of ‘scope_exit_49’ with no type
prog.cpp:49: error: expected primary-expression before ‘[’ token
prog.cpp:49: error: expected primary-expression before ‘]’ token
prog.cpp:49: error: expected ‘,’ or ‘;’ before ‘{’ token
prog.cpp:50: error: ISO C++ forbids declaration of ‘scope_exit_50’ with no type
prog.cpp:52: error: ISO C++ forbids declaration of ‘scope_exit_52’ with no type
prog.cpp:53: error: ISO C++ forbids declaration of ‘scope_exit_53’ with no type
prog.cpp:53: error: ‘bind’ is not a member of ‘std’
prog.cpp:48: warning: unused variable ‘scope_exit_48’
prog.cpp:49: warning: unused variable ‘scope_exit_49’
prog.cpp:50: warning: unused variable ‘scope_exit_50’
prog.cpp:52: warning: unused variable ‘scope_exit_52’
prog.cpp:53: warning: unused variable ‘scope_exit_53’