Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 13.0.0 (https://github.com/llvm/llvm-project.git fcdf7f6224610a51dc2ff47f2f1e3377329b64a7)

Options
Warnings
Boost 1.73.0
C++2b(GNU)
no pedantic

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2b
prog.cc:20:25: error: cannot initialize an array element of type 'const char' with an lvalue of type 'char const[4]'
      : lhs_{lhs}, rhs_{rhs}, value_{[&] {
                        ^~~
prog.cc:38:10: note: in instantiation of member function 'eq_<std::string, char [4]>::eq_' requested here
  return eq_{lhs, rhs};
         ^
prog.cc:43:14: note: in instantiation of function template specialization 'eq<std::string, char [4]>' requested here
  auto cmp = eq(str, "bcd");
             ^
1 error generated.
Exit Code:
1