octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not par


From: Rik
Subject: [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard
Date: Tue, 25 Jan 2022 13:43:19 -0500 (EST)

Follow-up Comment #29, bug #61812 (project octave):

@jwe: No problem adopting a more C++ way of doing things.  It seems to me that
any fix is starting to grow to a mildly large patch at this point.

First there needs to be configure.ac tests for the constants we are using. 
Some compilers will not be C++20 compatible so std::numbers won't exist.  That
means we should provide our own replacements.  Maybe the best solution is an
octave::numbers class which maps on to std::numbers when it exists or a
replacement value if it does not?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61812>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]