- **labels**:  --> Fixed_2_21_0
- **status**: Started --> Fixed
- **Patch**: push -->  
- **Comment**:

```text
commit 20c9983553e9883a899d7e10156a0e34b8900648 (HEAD -> 
dev/issue-5658-include-cmath, origin/staging)
Author: Dan Eble <[email protected]>
Date:   Fri Jan 10 20:53:26 2020 -0500

    Issue 5658/3: Cleanup: !isinf && !isnan == isfinite
```
```text
commit bb711884c61975474387ae6da10be378c129d3b4
Author: Dan Eble <[email protected]>
Date:   Fri Jan 10 18:54:20 2020 -0500

    Issue 5658/2: Qualify isinf, isnan, isfinite with std::
    
    This is necessary because we have seen an implementation of the standard
    library that defines ::isinf when certain headers other than math.h are
    included, so just avoiding math.h is not enough.
```
```text
commit 0376c35dbd5b9917fdfb61c80a94ccb3d6b0a997
Author: Dan Eble <[email protected]>
Date:   Thu Jan 9 16:40:46 2020 -0500

    Issue 5658/1: Include <cmath> consistently, not <math.h>
    
    In the past, we had problems with std::isinf and std::isnan not being
    provided by <cmath> because they are C++11 features, so we were
    including <math.h> in some places, and even potentially defining our
    own isinf().
    
    Now, we are using C++11.  Because the code is also graced with
    "using namespace std;" all over the place (see issue 4550), ambiguity
    may arise.  Using <cmath> consistently and removing our local definition
    of isinf() should improve the situation.
```



---

** [issues:#5658] Include <cmath> consistently, not <math.h>**

**Status:** Fixed
**Labels:** Fixed_2_21_0 
**Created:** Thu Jan 09, 2020 09:45 PM UTC by Dan Eble
**Last Updated:** Thu Jan 16, 2020 07:42 PM UTC
**Owner:** Dan Eble


In the past, we had problems with std::isinf and std::isnan not being
provided by `<cmath>` because they are C++11 features, so we were
including `<math.h>` in some places.

Now, we are using C++11.  Because the code is also graced with
`using namespace std;` all over the place (see issue 4550), ambiguity
may arise.  Using `<cmath>` consistently should improve the situation.

https://codereview.appspot.com/569220043


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto
  • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development
    • ... Auto mailings of changes to Lily Issues via Testlilyissues-auto via Automated messages for lilypond development

Reply via email to