Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to C++20 #5502

Open
KingCol13 opened this issue May 20, 2023 · 1 comment
Open

Upgrade to C++20 #5502

KingCol13 opened this issue May 20, 2023 · 1 comment

Comments

@KingCol13
Copy link
Contributor

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?

@12xx12
Copy link
Member

12xx12 commented May 25, 2023

I did this once and I think the problem was in one of the libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants