BrunoLevy / geogram

a programming library with geometric algorithms
Other
1.87k stars 128 forks source link

Fix C++20 Compilation of memory.h header #14

Closed DevFdv closed 2 years ago

DevFdv commented 2 years ago

Minor changes are required to compile the Geogram library with C++20: Removing occurrences of deprecated/removed functions from std::Allocator.

Tested compilation on GCC 12.1 and Clang 14 for C++20 compilation Tested compatibility with older compilers with GCC 7.5 with default compilation options

Those changes may not be sufficient to compile the whole code-base in C++20. At least, most headers of the Geogram library can be included in a C++20-based project with this change