Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

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

Options
Warnings
Boost 1.73.0
C++2b
no pedantic

Author

anonymous

over 3 years ago

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/clang-head/include -std=c++2b
prog.cc:36:5: error: call to deleted function 'func'
    func( buffer.data( ) ); // should NOT be allowed!
    ^~~~
prog.cc:25:6: note: candidate function has been explicitly deleted
void func( const char* str ) = delete;
     ^
prog.cc:6:6: note: candidate function
void func( const std::string_view str )
     ^
1 error generated.
Exit Code:
1