Mercurial > octave
changeset 32627:3b151ee4e140
maint: Remove constexpr from 3 instances unsupported by clang in cset 395ab2ffb0c2
* graphics.cc (calc_tick_sep): Revert three instances of constexpr that used
sqrt() to simply "static const" because clang doesn't support this feature yet.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 21 Dec 2023 08:28:07 -0800 |
parents | 395ab2ffb0c2 |
children | ae4e19c0a2b1 |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Wed Dec 20 20:02:42 2023 -0800 +++ b/libinterp/corefcn/graphics.cc Thu Dec 21 08:28:07 2023 -0800 @@ -7364,9 +7364,9 @@ magform ((hi - lo) / ticint, a, b); - static constexpr double SQRT_2 = sqrt (2.0); - static constexpr double SQRT_10 = sqrt (10.0); - static constexpr double SQRT_50 = sqrt (50.0); + static const double SQRT_2 = sqrt (2.0); + static const double SQRT_10 = sqrt (10.0); + static const double SQRT_50 = sqrt (50.0); if (a < SQRT_2) x = 1;