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
+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
_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,
_RealType>& __x)
{
// The distribution has no state, nothing to restore.
- return __is >> _M_n;
+ return __is >> __x._M_n;
}
_GLIBCXX_END_NAMESPACE_VERSION