|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50997 - trunk/boost/random
From: steven_at_[hidden]
Date: 2009-02-03 14:19:00
Author: steven_watanabe
Date: 2009-02-03 14:18:59 EST (Tue, 03 Feb 2009)
New Revision: 50997
URL: http://svn.boost.org/trac/boost/changeset/50997
Log:
Make validation a static member function. Fixes #2673
Text files modified:
trunk/boost/random/inversive_congruential.hpp | 2 +-
trunk/boost/random/linear_feedback_shift.hpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/random/inversive_congruential.hpp
==============================================================================
--- trunk/boost/random/inversive_congruential.hpp (original)
+++ trunk/boost/random/inversive_congruential.hpp 2009-02-03 14:18:59 EST (Tue, 03 Feb 2009)
@@ -71,7 +71,7 @@
return value;
}
- bool validation(result_type x) const { return val == x; }
+ static bool validation(result_type x) { return val == x; }
#ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
Modified: trunk/boost/random/linear_feedback_shift.hpp
==============================================================================
--- trunk/boost/random/linear_feedback_shift.hpp (original)
+++ trunk/boost/random/linear_feedback_shift.hpp 2009-02-03 14:18:59 EST (Tue, 03 Feb 2009)
@@ -92,7 +92,7 @@
value = ((value & mask) << s) ^ b;
return value;
}
- bool validation(result_type x) const { return val == x; }
+ static bool validation(result_type x) { return val == x; }
#ifndef BOOST_NO_OPERATORS_IN_NAMESPACE
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