]> git.ipfire.org Git - thirdparty/gettext.git/commit
examples: Update hello-c++20 to work with g++ >= 14 and clang++ >= 19.
authorBruno Haible <bruno@clisp.org>
Mon, 2 Dec 2024 11:07:49 +0000 (12:07 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 2 Dec 2024 11:07:49 +0000 (12:07 +0100)
commitf405adea038ef7cf34a1b8ed6756782d100086e5
treef8ada110e0ac3dfb4406cc8c79f4deda94e58e9d
parentadfbe2ee7cd9b47a0465aa9a07d773fa290f46c1
examples: Update hello-c++20 to work with g++ >= 14 and clang++ >= 19.

* gettext-tools/examples/hello-c++20/configure.ac: Support newer C++ versions.
Try option -std=gnu++26, necessary for newer C++ versions.
* gettext-tools/examples/hello-c++20/hello.cc (main): Use different code in
newer C++.
gettext-tools/examples/hello-c++20/configure.ac
gettext-tools/examples/hello-c++20/hello.cc