]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* include/ext/random.tcc: Unfortunately more fixes for
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2014 12:09:30 +0000 (12:09 +0000)
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2014 12:09:30 +0000 (12:09 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/random.tcc

index d0dea3d87a36827ac6d052dd17559a4b613f9aa6..34dc59fd5985765fcce09682bbf61d8086e78c95 100644 (file)
@@ -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
index eda5d9aa0097e04e8bd786600c179c4e086f0ea9..22295182a9498ebb64e3ee24129d0f0c662f8f38 100644 (file)
@@ -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