I see a few days ago LLVM released v 15.0.0 which includes C++20 modules.
So I thought I'd try compiling FreeCAD with C++20 and play with the newer constexpr stuff. Result:
Code: Select all
[ 80%] Building CXX object src/Mod/TechDraw/App/CMakeFiles/TechDraw.dir/CenterLinePyImp.cpp.o
In file included from /Users/bernie/CLionProjects/FreeCAD/src/Mod/TechDraw/App/CenterLinePyImp.cpp:27:
In file included from /usr/local/include/boost/uuid/uuid_io.hpp:16:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/ios:215:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/__locale:14:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/string:506:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/string_view:175:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/__string:57:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/algorithm:643:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/memory:681:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/atomic:571:
In file included from /usr/local/opt/llvm@11/bin/../include/c++/v1/__threading_support:27:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/pthread.h:70:10: fatal error: 'pthread/qos.h' file not found
#include <pthread/qos.h>
^~~~~~~~~~~~~~~
1 error generated.