Getting a deprecated warning/error with clang 14 and CXXOPTS_USE_UNICODE_HELP ON
tanja84dk opened this issue · 1 comments
tanja84dk commented
Just wanna inform that I'm receiving a deprecated about when ever I build with CXXOPTS_USE_UNICODE_HELP ON on clang 14
It gives no warnings as soon as I don't build with the CXXOPTS_USE_UNICODE_HELP
The version I'm using is the 3.0.0 from releases
I'm compiling with -Werror -Wall -Wextra -O3 set in cmake and compiling with C++17
Btw the reason for the weird path that is because CPM to pull in dependencies.
[build] /home/buildclient/.cache/CPM/cxxopts/7604315a3c6ca9634c8e8a1107796dc9f310074e/cxxopts/include/cxxopts.hpp:122:10: error: 'iterator<std::forward_iterator_tag, int>' is deprecated [-Werror,-Wdeprecated-declarations]
[build] std::iterator<std::forward_iterator_tag, int32_t>
[build] ^
[build] /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, int>' has been explicitly marked deprecated here
[build] struct _GLIBCXX17_DEPRECATED iterator
[build] ^
[build] /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/x86_64-linux-gnu/c++/12/bits/c++config.h:119:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
[build] # define _GLIBCXX17_DEPRECATED [[__deprecated__]]
[build] ^
[build] 1 error generated.
jarro2783 commented
Thanks, I'll check it out.