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> 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 * include/tr1_impl/random
(uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type, (uniform_int<>::_M_call(_UniformRandomNumberGenerator&, result_type,
result_type, true_type)): Fix small thinko. result_type, true_type)): Fix small thinko.
......
...@@ -269,16 +269,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std) ...@@ -269,16 +269,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
bool _BoolType = __is_normal_iterator<_Iterator>::__value> bool _BoolType = __is_normal_iterator<_Iterator>::__value>
struct __niter_base struct __niter_base
{ {
static const _Iterator& static _Iterator
__b(const _Iterator& __it) __b(_Iterator __it)
{ return __it; } { return __it; }
}; };
template<typename _Iterator> template<typename _Iterator>
struct __niter_base<_Iterator, true> struct __niter_base<_Iterator, true>
{ {
static const typename _Iterator::_Iterator_type& static typename _Iterator::_Iterator_type
__b(const _Iterator& __it) __b(_Iterator __it)
{ return __it.base(); } { return __it.base(); }
}; };
......
...@@ -64,7 +64,7 @@ _GLIBCXX_END_NAMESPACE ...@@ -64,7 +64,7 @@ _GLIBCXX_END_NAMESPACE
#define _GLIBCXX_MOVE(_Tp) std::move(_Tp) #define _GLIBCXX_MOVE(_Tp) std::move(_Tp)
#else #else
#define _GLIBCXX_MOVE(_Tp) _Tp #define _GLIBCXX_MOVE(_Tp) (_Tp)
#endif #endif
_GLIBCXX_BEGIN_NAMESPACE(std) _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