Future support of constexpr math functions
Fri Feb 14 01:26:00 GMT 2020
I am writing some code that relies heavily on the use of constexpr math
functions to do calculations at compile time. The ability to do these
calculations at compile time is essential for the performance of the
Currently gcc is the only compiler that supports compile time math
operations such as "constexpr sin" and "constexpr cos". And it seems that
by doing so gcc is technically not conforming to the standard.
I am concerned that if I go down this path and become dependent on these
non-conforming features, support for this functionality may be dropped in a
future release of gcc. Is there any way I can get more information on plans
for future support of constexpr math functions in gcc?
More information about the Gcc-help