Closed k3DW closed 3 months ago
I wonder why it only warns under Clang 18 using libstdc++ 13.2.0, but not under GCC 13.2.0 itself, or under Clang 17 (which also uses libstdc++ 13).
The "allocator_access.hpp" header already has this and its corresponding "pop".
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4996)
#endif
I suggest changing it to this, which looks similar to other places in the library.
#if defined(__clang__) && defined(__has_warning)
# if __has_warning("-Wdeprecated-declarations")
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wdeprecated-declarations"
# endif
#elif defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4996)
#elif defined(__GNUC__) && !(defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
Compiled in
x86-64 clang 18.1.0
with-std=c++20 -Werror
https://godbolt.org/z/seqWTr8zj