random.tcc: Unfortunately more fixes for operator>> and operator<< for...
* include/ext/random.tcc: Unfortunately more fixes for operator>> and operator<< for uniform_on_sphere_distribution. From-SVN: r212517
This commit is contained in:
parent
888a1049c2
commit
b40d9361f9
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue