From b40d9361f95e6e54789cdea01c56d56f710968fd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 14 Jul 2014 12:09:30 +0000 Subject: [PATCH] random.tcc: Unfortunately more fixes for operator>> and operator<< for... * include/ext/random.tcc: Unfortunately more fixes for operator>> and operator<< for uniform_on_sphere_distribution. From-SVN: r212517 --- libstdc++-v3/ChangeLog | 5 +++++ 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 + + * include/ext/random.tcc: Unfortunately more fixes for + operator>> and operator<< for uniform_on_sphere_distribution. + 2014-07-13 Ulrich Drepper * 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& __x) { // The distribution has no state, nothing to restore. - return __is >> _M_n; + return __is >> __x._M_n; } _GLIBCXX_END_NAMESPACE_VERSION