lilypond-devel
[Top][All Lists]
Advanced

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

Re: 2.5.1: Header change breaks MacOS X


From: Matthias Neeracher
Subject: Re: 2.5.1: Header change breaks MacOS X
Date: Wed, 24 Nov 2004 15:27:48 -0800


On Nov 24, 2004, at 1:28 PM, Han-Wen Nienhuys wrote:

address@hidden writes:
One of the changes in 2.5.1 seems to be that all includes of <math.h>
got changed to <cmath>. Unfortunately, on MacOS X, this means that all
references to isinf() are no longer found (presumably cmath wraps this
as std::isinf, although I haven't tested that.

What is the proper fix? Should we be using

     using std;

somewhere?

Yes, I think a declaration

using namespace std;

would solve the issue. C++ purists abhor the practice because it pollutes the program namespace with a potentially large set of symbols. The stylish solution is

using std::isinf;

in every file using this symbol, but this would be a lot of work, and a pain to write portably until all C++ platforms are up to date with their namespace usage.

Matthias





reply via email to

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