You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Scott Cantor (Jira)" <ji...@apache.org> on 2022/08/04 13:44:00 UTC

[jira] [Updated] (SANTUARIO-527) Compilation error with C++20 standard

     [ https://issues.apache.org/jira/browse/SANTUARIO-527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor updated SANTUARIO-527:
-----------------------------------
    Summary: Compilation error with C++20 standard  (was: Compilation error with C++20 standard ()

> Compilation error with C++20 standard
> -------------------------------------
>
>                 Key: SANTUARIO-527
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-527
>             Project: Santuario
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: C++ 2.0.2
>            Reporter: Laurent Stacul
>            Assignee: Scott Cantor
>            Priority: Major
>
> System information:
>  
> {code:java}
> $ uname -a
> Linux ncerndobedev6196 4.12.14-95.45-default #1 SMP Wed Dec 11 13:09:13 UTC 2019 (12c8180) x86_64 x86_64 x86_64 GNU/Linux
> $ libc.so.6 --version
> GNU C Library (GNU libc) stable release version 2.31. Copyright (C) 2020 Free Software Foundation, Inc.
> $ /gcc --version
> gcc (GCC) 10.0.1 20200211 (experimental) Copyright (C) 2020 Free Software Foundation, Inc.{code}
> Compiling with -std=gnu++2a. Received kind of errors:
> {code:java}
> tools/xklient/xklient.cpp: In function 'int main(int, char**)':
> tools/xklient/xklient.cpp:4729:30: error: use of deleted function 'std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char16_t*) [with _Traits = std::char_traits<char>]'
>  4729 | << e.getMessage() << endl;
>  | ^
> In file included from /opt/1A/toolchain/x86_64-v20.0.8/include/c++/10.0.1/iostream:39,
>  from tools/xklient/xklient.cpp:83:
> /opt/1A/toolchain/x86_64-v20.0.8/include/c++/10.0.1/ostream:645:5: note: declared here
>  645 | operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
>  | ^~~~~~~~{code}
> The root cause is that several overloads of std::basic_ostream::operator<< were removed (in particular the one dealing with charXX_t as described here: https://en.cppreference.com/w/cpp/io/basic_ostream/operator_ltlt2.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)