Upgrade to C++20
KingCol13 opened this issue · comments
KingCol13 commented
While looking at the new Wunsafe-buffer-usage
errors with clang I came across a few places where C++20 features might be useful. One example is in FastNBT
where we have the pattern func(foo* a_Buffer, size_t a_BufferLength)
. The warnings complain about these and I think std::span
is designed to replace this pattern with some extra safety.
Would we be happy to upgrade to C++20?
x12xx12x commented
I did this once and I think the problem was in one of the libraries.