Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git c437f6c6873fe32e99e975f4fb1fe3b3531cb93c)

Options
Warnings
Boost 1.72.0
C++2a(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-head/include -std=gnu++2a
prog.cc:22:18: error: no matching member function for call to 'Compute'
  std::cout << b.Compute<bool>(true, false) << std::endl;
               ~~^~~~~~~~~~~~~
prog.cc:15:15: note: candidate template ignored: requirement '!std::is_same<bool, bool>::value' was not satisfied [with U = bool]
AddOperation::Compute(U a, U b){
              ^
1 error generated.
Exit Code:
1