Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 5 years ago

Language

C++

Compiler

gcc HEAD 11.0.0 20200805 (experimental)

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

Author

anonymous

almost 5 years ago

$ g++ prog.cc -Wall -Wextra -std=gnu++2a
prog.cc: In function 'int main()':
prog.cc:5:18: error: use of deleted function 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char8_t*) [with _Traits = std::char_traits<char>]'
    5 |     std::cout << u8"hello";
      |                  ^~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/ostream:640:5: note: declared here
  640 |     operator<<(basic_ostream<char, _Traits>&, const char8_t*) = delete;
      |     ^~~~~~~~
Exit Code:
1