Update of /cvsroot/boost/boost/boost/random
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21379

Modified Files:
        uniform_real.hpp 
Log Message:
sf.net bug #1665485: local variables should not shadow class members


Index: uniform_real.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/random/uniform_real.hpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- uniform_real.hpp    28 Jan 2005 15:04:17 -0000      1.17
+++ uniform_real.hpp    21 Feb 2007 20:16:35 -0000      1.18
@@ -33,14 +33,14 @@
   typedef RealType input_type;
   typedef RealType result_type;
 
-  explicit uniform_real(RealType min = RealType(0),
-                        RealType max = RealType(1))
-    : _min(min), _max(max)
+  explicit uniform_real(RealType min_arg = RealType(0),
+                        RealType max_arg = RealType(1))
+    : _min(min_arg), _max(max_arg)
   {
 #ifndef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
     BOOST_STATIC_ASSERT(!std::numeric_limits<RealType>::is_integer);
 #endif
-    assert(min < max);
+    assert(min_arg < max_arg);
   }
 
   // compiler-generated copy ctor and assignment operator are fine


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to