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: John W. Eaton
Subject: [Octave-bug-tracker] [bug #61812] Math constants (e.g. M_PI) are not part of C/C++ standard
Date: Fri, 14 Jan 2022 12:50:22 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0

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

The only header that uses M_PI is oct-cmplx.h.  It is used in some template
function definitions but maybe there is some way we could change that code so
M_PI would not be needed in the header file?  As far as I can tell, we only
care about std::complex<float> and std::complex<double> so it seems the header
file could just provide the necessary extern template declarations for the
specializations that we need?

Is M_PI the only defined constant we use or are there others that may also
appear in public header files?

    _______________________________________________________

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]