Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58148 - trunk/boost/random
From: marshall_at_[hidden]
Date: 2009-12-04 17:22:01


Author: marshall
Date: 2009-12-04 17:22:01 EST (Fri, 04 Dec 2009)
New Revision: 58148
URL: http://svn.boost.org/trac/boost/changeset/58148

Log:
Fixed shadow warnings reported in ticket 3710
Text files modified:
   trunk/boost/random/additive_combine.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/random/additive_combine.hpp
==============================================================================
--- trunk/boost/random/additive_combine.hpp (original)
+++ trunk/boost/random/additive_combine.hpp 2009-12-04 17:22:01 EST (Fri, 04 Dec 2009)
@@ -54,8 +54,8 @@
   additive_combine(typename MLCG1::result_type seed1,
                    typename MLCG2::result_type seed2)
     : _mlcg1(seed1), _mlcg2(seed2) { }
- additive_combine(result_type seed)
- : _mlcg1(seed), _mlcg2(seed) { }
+ additive_combine(result_type aseed)
+ : _mlcg1(aseed), _mlcg2(aseed) { }
   template<class It> additive_combine(It& first, It last)
     : _mlcg1(first, last), _mlcg2(first, last) { }
 
@@ -65,10 +65,10 @@
     _mlcg2.seed();
   }
 
- void seed(result_type seed)
+ void seed(result_type aseed)
   {
- _mlcg1.seed(seed);
- _mlcg2.seed(seed);
+ _mlcg1.seed(aseed);
+ _mlcg2.seed(aseed);
   }
 
   void seed(typename MLCG1::result_type seed1,


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