On Tue, 8 Aug 2023 at 17:04, Nikolas Klauser wrote: > > Luckily most of these aren’t problems for libc++. We only support the latest > GCC. We can only use `if constexpr` in C++11, but that is already a win I > think.
Can you use it in C++11 though? The body of a constexpr function must be a single return statement, so if-constexpr isn't allowed. You can use it in C++14 though.