[libc++] Workaround non-constexpr std::exchange pre C++20
std::exchange is only constexpr in C++20 and later. We were using it in a constructor marked unconditionally constexpr, which caused issues when building with -std=c++17. The weird part is that the issue only showed up when building on the arm64 macs, but that must be caused by the specific version of Clang used on those. Since the code is clearly wrong and the fix is obvious, I'm not going to investigate this further.
Loading
Please sign in to comment