Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

clang HEAD 7.0.0 (https://github.com/llvm-mirror/clang.git 9d15b43884795a6a01604d5e99f6ad9242ecad39) (https://github.com/llvm-mirror/llvm.git 13ee34b33549b4115c9e2308bbbdd2a34de23503)

Options
Warnings
Don't Use Boost
C++2a
no pedantic

Author

anonymous

almost 7 years ago

$ clang++ prog.cc -Wall -Wextra -std=c++2a
prog.cc:69:19: error: no matching constructor for initialization of 'span<int, 10>'
    span<int, 10> s(v);
                  ^ ~
prog.cc:57:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'const std::vector<int>' to 'const span<int, 10>' for 1st argument
struct span {
       ^
prog.cc:57:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'const std::vector<int>' to 'span<int, 10>' for 1st argument
struct span {
       ^
prog.cc:59:5: note: candidate template ignored: requirement '__is_span_compatible_container<const vector<int, allocator<int> >, int>::value' was not satisfied [with _Container = const std::__1::vector<int, std::__1::allocator<int> >]
    span(_Container& __c,
    ^
prog.cc:63:5: note: candidate template ignored: requirement '__is_span_compatible_container<const vector<int, allocator<int> >, int>::value' was not satisfied [with _Container = std::__1::vector<int, std::__1::allocator<int> >]
    span(const _Container& __c,
    ^
1 error generated.
Exit Code:
1