From: drepper Date: Mon, 14 Jul 2014 12:09:30 +0000 (+0000) Subject: * include/ext/random.tcc: Unfortunately more fixes for X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3bb9b3870e4ed964718a512263ccc4b5130ef84;p=thirdparty%2Fgcc.git * 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index d0dea3d87a36..34dc59fd5985 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 eda5d9aa0097..22295182a949 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