Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

clang HEAD 12.0.0 (https://github.com/llvm/llvm-project.git 1c19900f9417bd0b832c1cb70863b2439a18647f)

Options
Warnings
Boost 1.73.0
C++2a
no pedantic

Author

anonymous

over 4 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2a
prog.cc:20:5: error: no matching constructor for initialization of 'S'
    S{std::vector<int>{}};
    ^~~~~~~~~~~~~~~~~~~~~
prog.cc:4:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'std::vector<int>' to 'const S' for 1st argument
struct S
       ^
prog.cc:4:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'std::vector<int>' to 'S' for 1st argument
struct S
       ^
prog.cc:10:5: note: candidate template ignored: substitution failure [with T = std::__1::vector<int, std::__1::allocator<int>>, X = S]: no matching member function for call to 'set_value'
    S(T && x)
    ^
1 error generated.
Exit Code:
1