Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In file included from Console.hpp:4:0,
- from main.cpp:1:
- /usr/include/c++/5.3.0/functional: In instantiation of 'struct std::_Bind_check_arity<unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>':
- /usr/include/c++/5.3.0/functional:1439:12: required from 'struct std::_Bind_helper<false, unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>'
- /usr/include/c++/5.3.0/functional:1462:5: required by substitution of 'template<class _Func, class ... _BoundArgs> typename std::_Bind_helper<std::__is_socketlike<_Func>::value, _Func, _BoundArgs ...>::type std::bind(_Func&&, _BoundArgs&& ...) [with _Func = unsigned int (A::*)(const std::vector<std::basic_string<char> >&); _BoundArgs = {A&}]'
- main.cpp:51:67: required from here
- /usr/include/c++/5.3.0/functional:1426:7: error: static assertion failed: Wrong number of arguments for pointer-to-member
- static_assert(_Varargs::value
- ^
- main.cpp: In function 'int main()':
- main.cpp:51:68: error: no matching function for call to 'CppReadline::Console::registerCommand(const char [6], std::_Bind_helper<false, unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>::type)'
- context["main"]->registerCommand("pippo", std::bind(&A::pippo, a));
- ^
- In file included from main.cpp:1:0:
- Console.hpp:60:18: note: candidate: void CppReadline::Console::registerCommand(const string&, CppReadline::Console::CommandFunction)
- void registerCommand(const std::string & s, CommandFunction f);
- ^
- Console.hpp:60:18: note: no known conversion for argument 2 from 'std::_Bind_helper<false, unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>::type {aka std::_Bind<std::_Mem_fn<unsigned int (A::*)(const std::vector<std::basic_string<char> >&)>(A)>}' to 'CppReadline::Console::CommandFunction {aka std::function<int(const std::vector<std::basic_string<char> >&)>}'
- main.cpp:52:68: error: no matching function for call to 'CppReadline::Console::registerCommand(const char [6], std::_Bind_helper<false, unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>::type)'
- context["main"]->registerCommand("pippi", std::bind(&A::pippo, a));
- ^
- In file included from main.cpp:1:0:
- Console.hpp:60:18: note: candidate: void CppReadline::Console::registerCommand(const string&, CppReadline::Console::CommandFunction)
- void registerCommand(const std::string & s, CommandFunction f);
- ^
- Console.hpp:60:18: note: no known conversion for argument 2 from 'std::_Bind_helper<false, unsigned int (A::*)(const std::vector<std::basic_string<char> >&), A&>::type {aka std::_Bind<std::_Mem_fn<unsigned int (A::*)(const std::vector<std::basic_string<char> >&)>(A)>}' to 'CppReadline::Console::CommandFunction {aka std::function<int(const std::vector<std::basic_string<char> >&)>}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement