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

[EMAIL PROTECTED] 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



_______________________________________________
lilypond-devel mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to