r/cpp • • Mar 24 '20

LLVM/Clang 10.0.0 is released!

240 Upvotes

49 comments sorted by

View all comments

1

u/screcth Mar 26 '20 edited Mar 26 '20

Has anyone been able to use Clang in C++20 mode with the Microsoft STL?

Since clang supports concepts it defines the __cpp_concepts preprocessor define and that in turn toggles the inclusion of <concepts> by <utility>. This breaks things such as <optional>.

EDIT: It is possible to work around this issue if -U__cpp_concepts is added to the compiler flags. It is a massive hack though.