Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 4.4.7

Options
Warnings
Boost 1.59.0
C++0x(GNU)

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -W -I/opt/wandbox/boost-1.59.0/gcc-4.4.7/include -std=gnu++0x
prog.cc:57: warning: unused parameter 'argc'
prog.cc:57: warning: unused parameter 'argv'
prog.cc: In function 'utils::CFunction<TRet(Arg1, Arg2)> utils::Bind(TRet (TClass::*)(Arg1, Arg2), TClass*) [with TRet = bool, TClass = TestLogic, Arg1 = std::string&, Arg2 = double]':
prog.cc:59:   instantiated from here
prog.cc:43: error: 'func' is not a valid template argument for type 'bool (TestLogic::*)(std::string&, double)'
prog.cc:43: error: it must be a pointer-to-member of the form `&X::Y'
prog.cc:43: error: no matching function for call to 'utils::CFunction<bool(std::string&, double)>::Create(TestLogic*&)'
Exit Code:
1