Bug#266454: quantlib: FTBFS with gcc-3.4: 'this->' missing (2/7)
From
Andreas Jochens@1:229/2 to
All on Wed Aug 18 00:50:05 2004
[continued from previous message]
return 2.0*b_[j] + 6.0*c_[j]*dx;
}
private:
diff -urN ../tmp-orig/quantlib-0.3.7/ql/Math/gaussianstatistics.hpp ./ql/Math/gaussianstatistics.hpp
--- ../tmp-orig/quantlib-0.3.7/ql/Math/gaussianstatistics.hpp 2004-05-18 15:05:24.000000000 +0200
+++ ./ql/Math/gaussianstatistics.hpp 2004-08-17 23:58:18.389602993 +0200
@@ -120,8 +120,8 @@
template<class Stat>
inline
Real GaussianStatistics<Stat>::gaussianRegret(Real target) const {
- Real m = mean();
- Real std = standardDeviation();
+ Real m = this->mean();
+ Real std = this->standardDeviation();
Real variance = std*std;
CumulativeNormalDistribution gIntegral(m, std);
NormalDistribution g(m, std);
@@ -197,8 +197,8 @@
DecimalFormatter::toString(percentile) +
") out of range [0.9, 1.0)");
- Real m = mean();
- Real std = standardDeviation();
+ Real m = this->mean();
+ Real std = this->standardDeviation();
InverseCumulativeNormal gInverse(m, std);
Real var = gInverse(1.0-percentile);
NormalDistribution g(m, std);
@@ -213,8