1>ClCompile: 1> main.cpp 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2903: 'result' : symbol is neither a class template nor a function template 1> c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40) : see reference to class template instantiation 'std::tr1::_Result_type1<__formal,_Fty,_Arg0>' being compiled 1> with 1> [ 1> __formal=false, 1> _Fty=A, 1> _Arg0=int & 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxresult(597) : see reference to class template instantiation 'std::tr1::_Result_of1<_Fty,_Farg0>' being compiled 1> with 1> [ 1> _Fty=A, 1> _Farg0=int & 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxcallobj(13) : see reference to class template instantiation 'std::tr1::_Result_of<_Ty>' being compiled 1> with 1> [ 1> _Ty=A (int &) 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxfunction(65) : see reference to function template instantiation '_Ret std::tr1::_Callable_obj<_Ty>::_ApplyX<_Rx,_Arg0&>(int)' being compiled 1> with 1> [ 1> _Ret=int, 1> _Ty=std::tr1::reference_wrapper, 1> _Rx=int, 1> _Arg0=int 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxfunction(64) : while compiling class template member function 'int std::tr1::_Impl_no_alloc1<_Callable,_Rx,_Arg0>::_Do_call(_Arg0)' 1> with 1> [ 1> _Callable=_MyWrapper, 1> _Rx=int, 1> _Arg0=int 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxfunction(386) : see reference to class template instantiation 'std::tr1::_Impl_no_alloc1<_Callable,_Rx,_Arg0>' being compiled 1> with 1> [ 1> _Callable=_MyWrapper, 1> _Rx=int, 1> _Arg0=int 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxfunction(369) : see reference to function template instantiation 'void std::tr1::_Function_impl1<_Ret,_Arg0>::_Reset0o<_Myimpl,_Fty,std::allocator<_Ty>>(_Fty,_Alloc)' being compiled 1> with 1> [ 1> _Ret=int, 1> _Arg0=int, 1> _Fty=std::tr1::reference_wrapper, 1> _Ty=std::tr1::_Function_impl1, 1> _Alloc=std::allocator> 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\functional(126) : see reference to function template instantiation 'void std::tr1::_Function_impl1<_Ret,_Arg0>::_Reset>(_Fty)' being compiled 1> with 1> [ 1> _Ret=int, 1> _Arg0=int, 1> _Ty=A, 1> _Fty=std::tr1::reference_wrapper 1> ] 1> c:\users\gaspa\desktop\prova\main.cpp(15) : see reference to function template instantiation 'std::tr1::function<_Fty>::function(std::tr1::reference_wrapper<_Ty>)' being compiled 1> with 1> [ 1> _Fty=int (int), 1> _Ty=A 1> ] 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2039: 'result' : is not a member of 'A' 1> c:\users\gaspa\desktop\prova\main.cpp(5) : see declaration of 'A' 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2143: syntax error : missing ';' before '<' 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2039: 'type' : is not a member of '`global namespace'' 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(28): error C2238: unexpected token(s) preceding ';' 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40): error C2039: '_Type' : is not a member of 'std::tr1::_Result_type1<__formal,_Fty,_Arg0>' 1> with 1> [ 1> __formal=false, 1> _Fty=A, 1> _Arg0=int & 1> ] 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40): error C2146: syntax error : missing ';' before identifier '_Type' 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40): error C2602: 'std::tr1::_Result_of1<_Fty,_Farg0>::_Type' is not a member of a base class of 'std::tr1::_Result_of1<_Fty,_Farg0>' 1> with 1> [ 1> _Fty=A, 1> _Farg0=int & 1> ] 1> c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40) : see declaration of 'std::tr1::_Result_of1<_Fty,_Farg0>::_Type' 1> with 1> [ 1> _Fty=A, 1> _Farg0=int & 1> ] 1>c:\program files\microsoft visual studio 10.0\vc\include\xxresult(40): error C2868: 'std::tr1::_Result_of1<_Fty,_Farg0>::_Type' : illegal syntax for using-declaration; expected qualified-name 1> with 1> [ 1> _Fty=A, 1> _Farg0=int & 1> ] 1> 1>Build FAILED.