summaryrefslogtreecommitdiff
path: root/external/boost/boost.random.Wshadow.warnings.patch
blob: 86b57fa182386f76036cdb9533356c8660d06a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- misc/boost_1_44_0/boost/random/mersenne_twister.hpp
+++ misc/build/boost_1_44_0/boost/random/mersenne_twister.hpp
@@ -195,19 +195,19 @@
      * Returns true if the two generators are in the same state,
      * and will thus produce identical sequences.
      */
-    friend bool operator==(const mersenne_twister_engine& x,
-                           const mersenne_twister_engine& y)
+    friend bool operator==(const mersenne_twister_engine& x_arg,
+                           const mersenne_twister_engine& y_arg)
     {
-        if(x.i < y.i) return x.equal_imp(y);
-        else return y.equal_imp(x);
+        if(x_arg.i < y_arg.i) return x_arg.equal_imp(y_arg);
+        else return y_arg.equal_imp(x_arg);
     }
     
     /**
      * Returns true if the two generators are in different states.
      */
-    friend bool operator!=(const mersenne_twister_engine& x,
-                           const mersenne_twister_engine& y)
-    { return !(x == y); }
+    friend bool operator!=(const mersenne_twister_engine& x_arg,
+                           const mersenne_twister_engine& y_arg)
+    { return !(x_arg == y_arg); }
 
 private:
     /// \cond show_private