Bump cxx standard to 17. #13
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes building with libicu 76 which relies on standard 17.
(libicu 76.1 is part of upcoming Debian Trixie)
With 11:
[ 39%] Building CXX object src/lib/CMakeFiles/digiham_util.dir/charset.cpp.o
cd /home/sdr/test/owrx-build/aarch64/digiham/obj-aarch64-linux-gnu/src/lib && /usr/bin/c++ -DVERSION="0.6.2" -I/home/sdr/test/owrx-build/aarch64/digiham/include -I/home/sdr/test/owrx-build/aarch64/digiham/src/lib -g -O2 -ffile-prefix-map=/home/sdr/test/owrx-build/aarch64/digiham=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++11 -fPIC -MD -MT src/lib/CMakeFiles/digiham_util.dir/charset.cpp.o -MF CMakeFiles/digiham_util.dir/charset.cpp.o.d -o CMakeFiles/digiham_util.dir/charset.cpp.o -c /home/sdr/test/owrx-build/aarch64/digiham/src/lib/charset.cpp
In file included from /usr/include/unicode/uenum.h:25,
from /usr/include/unicode/ucnv.h:52,
from /home/sdr/test/owrx-build/aarch64/digiham/src/lib/charset.cpp:3:
/usr/include/unicode/localpointer.h:561:26: error: parameter declared ‘auto’
561 | template <typename Type, auto closeFunction>
| ^~~~
/usr/include/unicode/localpointer.h:573:76: error: template argument 2 is invalid
573 | explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
| ^
/usr/include/unicode/localpointer.h:583:78: error: template argument 2 is invalid
583 | LocalOpenPointer &operator=(std::unique_ptr<Type, decltype(closeFunction)> &&p) {
| ^
/usr/include/unicode/localpointer.h:599:59: error: template argument 2 is invalid
599 | operator std::unique_ptr<Type, decltype(closeFunction)> () && {
| ^