random.tcc: Fix operator>> and operator<< for uniform_on_sphere_distribution.

* include/ext/random.tcc: Fix operator>> and operator<< for
	uniform_on_sphere_distribution.

From-SVN: r212496
This commit is contained in:
Ulrich Drepper 2014-07-13 16:43:01 +00:00 committed by Ulrich Drepper
parent 9c2c4e622c
commit 5c8efaf2fb
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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.

View File

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