GCC support for extensions from later standards

Jonathan Wakely jwakely.gcc@gmail.com
Tue Aug 8 16:07:45 GMT 2023


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.


More information about the Libstdc++ mailing list