Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 5 years ago

Language

C++

Compiler

gcc 9.3.0

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

Author

anonymous

about 5 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-9.3.0/include -std=gnu++2a
prog.cc: In function 'constexpr size_t copy(std::string_view, char*)':
prog.cc:6:20: error: call to non-'constexpr' function 'std::basic_string_view<_CharT, _Traits>::size_type std::basic_string_view<_CharT, _Traits>::copy(_CharT*, std::basic_string_view<_CharT, _Traits>::size_type, std::basic_string_view<_CharT, _Traits>::size_type) const [with _CharT = char; _Traits = std::char_traits<char>; std::basic_string_view<_CharT, _Traits>::size_type = long unsigned int]'
    6 |     return str.copy(dst, 1);
      |            ~~~~~~~~^~~~~~~~
Exit Code:
1