Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 10.0.0 (https://github.com/llvm-mirror/clang.git 65acf43270ea2894dffa0d0b292b92402f80c8cb) (https://github.com/llvm-mirror/llvm.git 2c4ca6832fa6b306ee6a7010bfb80a3f2596f824)

Options
Warnings
Boost 1.72.0
C++2a
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-head/include -std=c++2a
prog.cc:26:5: error: no matching function for call to 'compare'
    compare(v1,v2,&matcher);
    ^~~~~~~
prog.cc:5:6: note: candidate function template not viable: no overload of 'matcher' matching 'void (*)(const int &, const int &, const size_t &)' (aka 'void (*)(const int &, const int &, const unsigned long &)') for 3rd argument
void compare(const std::vector<T> &v1, const std::vector<T> &v2, void(*func)(const int&,const int&,const size_t&))
     ^
1 error generated.
Exit Code:
1