Re: Future support of constexpr math functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Jonathan Wakely:

> I think it's very unlikely that constexpr support will decrease. The
> trend has been in the opposite direction, to make every function in
> the standard library usable in constant expressions. I heard a
> suggestion to require implementations to add constexpr to <cmath>
> functions just the other day.

Many of these functions depend on global state such as the rounding
mode.  I don't think making them constexpr is a good idea.

Thanks,
Florian





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux