* include/ext/random.tcc: Fix operator>> and operator<< for
uniform_on_sphere_distribution.
From-SVN: r212496
+2014-07-13 Ulrich Drepper <drepper@gmail.com>
+
+ * include/ext/random.tcc: Fix operator>> and operator<< for
+ uniform_on_sphere_distribution.
+
2014-07-12 Ulrich Drepper <drepper@gmail.com>
* include/ext/random: Add uniform_on_sphere_distribution definition.
_RealType>& __x)
{
// The distribution has no state, nothing to save.
- return __os;
+ return __os << _M_n;
}
template<std::size_t _Dimen, typename _RealType, typename _CharT,
_RealType>& __x)
{
// The distribution has no state, nothing to restore.
- return __is;
+ return __is >> _M_n;
}
_GLIBCXX_END_NAMESPACE_VERSION