It is no longer possible to compile this module with the Godot build system.
Compiling with cmake works fine but it is not compatible with Godot.
Using C++20 seems like a good idea but it doesn't eliminate all the issues.
Below are the compilation logs for GCC and Clang.
It is also not possible to compile on Windows using MSVC.
Linux:
compilling_log_clang.txt
compilling_log_gcc.txt
Windows:
compilling_log_MSVC.txt