Commit 5c8efaf2 by Ulrich Drepper Committed by Ulrich Drepper

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
parent 9c2c4e62
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment