[libcxx-commits] [libcxx] [libc++][NFC] Use `if constexpr` instead of SFINAE to simplify shared_ptr (PR #113495)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Oct 24 12:31:44 PDT 2024
philnik777 wrote:
> @philnik777 This doesn't seem to work in C++03 mode. I thought you mentioned something along the lines that this should be working in all standard modes. Did I invent that?
Eh, I think you invented that. Anything `constexpr` doesn't work in C++03 mode. Attributes and lambdas (in new versions of clang) work in C++03 though. FWIW this is one of the simplifications we could do all over the code base when we split C++03 and non-C++03 code.
https://github.com/llvm/llvm-project/pull/113495
More information about the libcxx-commits
mailing list