diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-14 12:09:30 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-14 12:09:30 +0000 |
commit | e3bb9b3870e4ed964718a512263ccc4b5130ef84 (patch) | |
tree | 69f83f5644d96bb9855b594c2649e58e6586623a /libstdc++-v3 | |
parent | c121a17348ecd6e447f992ea9bd7ceaae482e298 (diff) | |
download | gcc-e3bb9b3870e4ed964718a512263ccc4b5130ef84.tar.gz |
* include/ext/random.tcc: Unfortunately more fixes for
operator>> and operator<< for uniform_on_sphere_distribution.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/ext/random.tcc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d0dea3d87a3..34dc59fd598 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2014-07-14 Ulrich Drepper <drepper@gmail.com> + + * include/ext/random.tcc: Unfortunately more fixes for + operator>> and operator<< for uniform_on_sphere_distribution. + 2014-07-13 Ulrich Drepper <drepper@gmail.com> * include/ext/random.tcc: Fix operator>> and operator<< for diff --git a/libstdc++-v3/include/ext/random.tcc b/libstdc++-v3/include/ext/random.tcc index eda5d9aa009..22295182a94 100644 --- a/libstdc++-v3/include/ext/random.tcc +++ b/libstdc++-v3/include/ext/random.tcc @@ -1584,7 +1584,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _RealType>& __x) { // The distribution has no state, nothing to save. - return __os << _M_n; + return __os << __x._M_n; } template<std::size_t _Dimen, typename _RealType, typename _CharT, @@ -1595,7 +1595,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _RealType>& __x) { // The distribution has no state, nothing to restore. - return __is >> _M_n; + return __is >> __x._M_n; } _GLIBCXX_END_NAMESPACE_VERSION |