Commit 85799c60 by Paolo Carlini Committed by Paolo Carlini

stl_move.h (_GLIBCXX_MOVE): Wrap in parentheses.

2007-10-20  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/stl_move.h (_GLIBCXX_MOVE): Wrap in parentheses.
	* include/bits/stl_algobase.h (__niter_base<>): Pass iterators
	by value, as everywhere else.

From-SVN: r129509
parent b59d6a2b
2007-10-20 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_move.h (_GLIBCXX_MOVE): Wrap in parentheses.
* include/bits/stl_algobase.h (__niter_base<>): Pass iterators
by value, as everywhere else.
2007-10-20 Paolo Carlini <pcarlini@suse.de>
* include/tr1_impl/random
(uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type,
result_type, true_type)): Fix small thinko.
......
......@@ -269,16 +269,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
bool _BoolType = __is_normal_iterator<_Iterator>::__value>
struct __niter_base
{
static const _Iterator&
__b(const _Iterator& __it)
static _Iterator
__b(_Iterator __it)
{ return __it; }
};
template<typename _Iterator>
struct __niter_base<_Iterator, true>
{
static const typename _Iterator::_Iterator_type&
__b(const _Iterator& __it)
static typename _Iterator::_Iterator_type
__b(_Iterator __it)
{ return __it.base(); }
};
......
......@@ -64,7 +64,7 @@ _GLIBCXX_END_NAMESPACE
#define _GLIBCXX_MOVE(_Tp) std::move(_Tp)
#else
#define _GLIBCXX_MOVE(_Tp) _Tp
#define _GLIBCXX_MOVE(_Tp) (_Tp)
#endif
_GLIBCXX_BEGIN_NAMESPACE(std)
......
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