Namespaces
Variants
Actions

Talk:cpp/types/is constant evaluated

From cppreference.com

on gcc 11.3 std::pow seems to be treated by the compiler as a constexpr built-in function. Is that strictly conforming?

may be a better example is possible?


--PeterSommerlad1 (talk) 01:08, 25 June 2022 (PDT)

It's strictly non-conforming. There's at least GCC bug report for it (ignore the comment "C++23 is making these constexpr anyway", that's not true) --Ybab321 (talk) 03:05, 25 June 2022 (PDT)