Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 234f51a65a45b79402996ac6f0abcbb5793814bf)

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

Author

anonymous

almost 5 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=gnu++2a
prog.cc:7:49: error: value of type 'const auto' is not implicitly convertible to 'bool'
    template <class U, class = std::enable_if_t<constant_bool_v<T>>>
                                                ^~~~~~~~~~~~~~~~~~
prog.cc:11:8: note: in instantiation of template class 'C<int>' requested here
C<int> vvv('c');
       ^
prog.cc:11:8: error: no matching constructor for initialization of 'C<int>'
C<int> vvv('c');
       ^   ~~~
prog.cc:3:27: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'char' to 'const C<int>' for 1st argument
template <class T> struct C {
                          ^
prog.cc:3:27: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'char' to 'C<int>' for 1st argument
template <class T> struct C {
                          ^
prog.cc:8:5: note: candidate template ignored: couldn't infer template argument ''
    C(U) {}
    ^
2 errors generated.
Exit Code:
1