Astera-org / minetest

Minetest is an open source voxel game engine with easy modding and game creation
https://www.minetest.net/
Other
0 stars 0 forks source link

Compile with c++-20 standard #89

Closed mickvangelderen closed 1 week ago

mickvangelderen commented 1 week ago

Ranges here we come!

Not sure how to handle the u8".." type change from char to char8_t but reinterpret_cast<const char *> seems appropriate: https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1423r2.html#reinterpret_cast

mickvangelderen commented 1 week ago

This is more of a proof of concept. Apparently we can compile with a modern CPP standard which enables us to write code more succinctly and safely.

It is true that this may make rebasing harder, although the code that is changed in this PR doesn't get modified very often.