cuberite / cuberite

A lightweight, fast and extensible game server for Minecraft

Home Page:https://cuberite.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Upgrade to C++20

KingCol13 opened this issue · comments

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?

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