Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66891 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2010-11-30 09:36:47


Author: pbristow
Date: 2010-11-30 09:36:45 EST (Tue, 30 Nov 2010)
New Revision: 66891
URL: http://svn.boost.org/trac/boost/changeset/66891

Log:
Corrected missing casts int 0 to RealType
Text files modified:
   trunk/boost/math/distributions/inverse_gamma.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/distributions/inverse_gamma.hpp
==============================================================================
--- trunk/boost/math/distributions/inverse_gamma.hpp (original)
+++ trunk/boost/math/distributions/inverse_gamma.hpp 2010-11-30 09:36:45 EST (Tue, 30 Nov 2010)
@@ -128,7 +128,7 @@
 inline const std::pair<RealType, RealType> range(const inverse_gamma_distribution<RealType, Policy>& /* dist */)
 { // Range of permissible values for random variable x.
    using boost::math::tools::max_value;
- return std::pair<RealType, RealType>(0, max_value<RealType>());
+ return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>
@@ -137,7 +137,7 @@
    // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero.
    using boost::math::tools::max_value;
    using boost::math::tools::min_value;
- return std::pair<RealType, RealType>(0, max_value<RealType>());
+ return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk