Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63188 - trunk/boost/random
From: steven_at_[hidden]
Date: 2010-06-21 11:13:12


Author: steven_watanabe
Date: 2010-06-21 11:13:11 EDT (Mon, 21 Jun 2010)
New Revision: 63188
URL: http://svn.boost.org/trac/boost/changeset/63188

Log:
Attempt to fix Sun and msvc-7.1 errors.
Text files modified:
   trunk/boost/random/binomial_distribution.hpp | 2 +-
   trunk/boost/random/discrete_distribution.hpp | 2 +-
   trunk/boost/random/linear_congruential.hpp | 2 +-
   trunk/boost/random/poisson_distribution.hpp | 2 +-
   4 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/random/binomial_distribution.hpp
==============================================================================
--- trunk/boost/random/binomial_distribution.hpp (original)
+++ trunk/boost/random/binomial_distribution.hpp 2010-06-21 11:13:11 EDT (Mon, 21 Jun 2010)
@@ -215,7 +215,7 @@
     friend std::basic_istream<CharT,Traits>&
     operator>>(std::basic_istream<CharT,Traits>& is, binomial_distribution& bd)
     {
- param_type parm;
+ typename binomial_distribution::param_type parm;
         if(is >> parm) {
             bd.param(parm);
         }

Modified: trunk/boost/random/discrete_distribution.hpp
==============================================================================
--- trunk/boost/random/discrete_distribution.hpp (original)
+++ trunk/boost/random/discrete_distribution.hpp 2010-06-21 11:13:11 EDT (Mon, 21 Jun 2010)
@@ -390,7 +390,7 @@
     friend std::basic_istream<CharT, Traits>&
     operator>>(std::basic_istream<CharT, Traits>& is, discrete_distribution& dd)
     {
- param_type parm;
+ typename discrete_distribution::param_type parm;
         if(is >> parm) {
             dd.param(parm);
         }

Modified: trunk/boost/random/linear_congruential.hpp
==============================================================================
--- trunk/boost/random/linear_congruential.hpp (original)
+++ trunk/boost/random/linear_congruential.hpp 2010-06-21 11:13:11 EDT (Mon, 21 Jun 2010)
@@ -193,7 +193,7 @@
   operator>>(std::basic_istream<CharT,Traits>& is,
              linear_congruential& lcg)
   {
- IntType x;
+ typename linear_congruential::result_type x;
     if(is >> x) {
       if(x >= (lcg.min)() && x <= (lcg.max)()) {
         lcg._x = x;

Modified: trunk/boost/random/poisson_distribution.hpp
==============================================================================
--- trunk/boost/random/poisson_distribution.hpp (original)
+++ trunk/boost/random/poisson_distribution.hpp 2010-06-21 11:13:11 EDT (Mon, 21 Jun 2010)
@@ -203,7 +203,7 @@
     friend std::basic_istream<CharT,Traits>&
     operator>>(std::basic_istream<CharT,Traits>& is, poisson_distribution& pd)
     {
- param_type parm;
+ typename poisson_distribution::param_type parm;
         if(is >> parm) {
             pd.param(parm);
         }


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