Files
clang-p2996/llvm/unittests/ADT/STLForwardCompatTest.cpp
Vlad Serebrennikov d0caa4eef7 [ADT] Backport std::to_underlying from C++23 (#70681)
This patch backports a one-liner `std::to_underlying` that came with C++23. This is useful for refactoring unscoped enums into scoped enums, because the latter are not implicitly convertible to integer types.

I followed libc++ implementation, but I consider their testing too heavy for us, so I wrote a simpler set of tests.
2023-10-30 23:06:28 +04:00

4.2 KiB