|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r70762 - trunk/boost/random
From: steven_at_[hidden]
Date: 2011-03-30 17:00:42
Author: steven_watanabe
Date: 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
New Revision: 70762
URL: http://svn.boost.org/trac/boost/changeset/70762
Log:
pgi doesn't seem to like writing a const char* to a std::wostream? Reading back a space with std::ws is mysteriously failing, but appears to work when a character is written instead of a string literal.
Text files modified:
trunk/boost/random/additive_combine.hpp | 2 +-
trunk/boost/random/discard_block.hpp | 2 +-
trunk/boost/random/lagged_fibonacci.hpp | 8 ++++----
trunk/boost/random/subtract_with_carry.hpp | 6 +++---
trunk/boost/random/xor_combine.hpp | 2 +-
5 files changed, 10 insertions(+), 10 deletions(-)
Modified: trunk/boost/random/additive_combine.hpp
==============================================================================
--- trunk/boost/random/additive_combine.hpp (original)
+++ trunk/boost/random/additive_combine.hpp 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
@@ -210,7 +210,7 @@
* of the second base generator.
*/
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, additive_combine_engine, r)
- { os << r._mlcg1 << " " << r._mlcg2; return os; }
+ { os << r._mlcg1 << ' ' << r._mlcg2; return os; }
/**
* Reads the state of an @c additive_combine_engine from a
Modified: trunk/boost/random/discard_block.hpp
==============================================================================
--- trunk/boost/random/discard_block.hpp (original)
+++ trunk/boost/random/discard_block.hpp 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
@@ -156,7 +156,7 @@
operator<<(std::basic_ostream<CharT,Traits>& os,
const discard_block_engine& s)
{
- os << s._rng << " " << s._n;
+ os << s._rng << ' ' << s._n;
return os;
}
Modified: trunk/boost/random/lagged_fibonacci.hpp
==============================================================================
--- trunk/boost/random/lagged_fibonacci.hpp (original)
+++ trunk/boost/random/lagged_fibonacci.hpp 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
@@ -142,9 +142,9 @@
*/
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, lagged_fibonacci_engine, f)
{
- os << f.i << " ";
+ os << f.i;
for(unsigned int i = 0; i < f.long_lag; ++i)
- os << f.x[i] << " ";
+ os << ' ' << f.x[i];
return os;
}
@@ -362,10 +362,10 @@
{
// allow for Koenig lookup
using std::pow;
- os << f.i << " ";
+ os << f.i;
std::ios_base::fmtflags oldflags = os.flags(os.dec | os.fixed | os.left);
for(unsigned int i = 0; i < f.long_lag; ++i)
- os << f.x[i] * f.modulus() << " ";
+ os << ' ' << f.x[i] * f.modulus();
os.flags(oldflags);
return os;
}
Modified: trunk/boost/random/subtract_with_carry.hpp
==============================================================================
--- trunk/boost/random/subtract_with_carry.hpp (original)
+++ trunk/boost/random/subtract_with_carry.hpp 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
@@ -225,8 +225,8 @@
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, subtract_with_carry_engine, f)
{
for(unsigned int j = 0; j < f.long_lag; ++j)
- os << f.compute(j) << " ";
- os << f.carry << " ";
+ os << f.compute(j) << ' ';
+ os << f.carry;
return os;
}
@@ -467,7 +467,7 @@
std::ios_base::fmtflags oldflags =
os.flags(os.dec | os.fixed | os.left);
for(unsigned int j = 0; j < f.long_lag; ++j)
- os << (f.compute(j) * f._modulus) << " ";
+ os << (f.compute(j) * f._modulus) << ' ';
os << (f.carry * f._modulus);
os.flags(oldflags);
return os;
Modified: trunk/boost/random/xor_combine.hpp
==============================================================================
--- trunk/boost/random/xor_combine.hpp (original)
+++ trunk/boost/random/xor_combine.hpp 2011-03-30 17:00:41 EDT (Wed, 30 Mar 2011)
@@ -143,7 +143,7 @@
*/
BOOST_RANDOM_DETAIL_OSTREAM_OPERATOR(os, xor_combine_engine, s)
{
- os << s._rng1 << " " << s._rng2;
+ os << s._rng1 << ' ' << s._rng2;
return os;
}
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