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 e14ae935c97fa188520267f118eafa6d022a0a46) (https://github.com/llvm-mirror/llvm.git 35e8f7fa33fa3f169b7d8f89e6a50148a9510d03)

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

Author

anonymous

almost 7 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.67.0/clang-head/include -std=gnu++2a
prog.cc:9:3: error: no matching function for call to 'fun'
  fun(sv);
  ^~~
prog.cc:4:6: note: candidate function not viable: no known conversion from 'std::string_view' (aka 'basic_string_view<char>') to 'std::string' (aka 'basic_string<char, char_traits<char>, allocator<char> >') for 1st argument
void fun(std::string){}
     ^
1 error generated.
Exit Code:
1