
13 Dec
2024
13 Dec
'24
5:53 p.m.
Ruben Perez wrote:
As a matter of curiosity: which compilers do not support __builtin_is_constant_evaluated? (as they will always get the slow memcpy implementation, even at runtime).
__builtin_is_constant_evaluated is supported by * Clang 9 and above (https://godbolt.org/z/4obMEj9fc) * GCC 9 and above (https://godbolt.org/z/5PdMsqezx) * MSVC 19.25+ (VS2017.something)