[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Multi-measure-rest compilation issue
From: |
address@hidden |
Subject: |
Multi-measure-rest compilation issue |
Date: |
Wed, 15 Jun 2011 09:07:47 +0200 |
multi-measure-rest.cc: In static member function 'static Stencil
Multi_measure_rest::church_rest(Grob*, Font_metric*, int, Real)':
multi-measure-rest.cc:246: error: call of overloaded 'pow(int, int)' is
ambiguous
/usr/include/architecture/i386/math.h:343: note: candidates are: double
pow(double, double)
/usr/include/c++/4.2.1/cmath:373: note: long double
std::pow(long double, int)
/usr/include/c++/4.2.1/cmath:369: note: float std::pow(float,
int)
/usr/include/c++/4.2.1/cmath:365: note: double std::pow(double,
int)
/usr/include/c++/4.2.1/cmath:361: note: long double
std::pow(long double, long double)
/usr/include/c++/4.2.1/cmath:357: note: float std::pow(float,
float)
Easy fix would be :
length = int (pow (2.0, -i));
instead of
length = int (pow (2, -i));
Cheers,
MS
- Multi-measure-rest compilation issue,
address@hidden <=