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
This commit is contained in:
parent
b59d6a2bba
commit
85799c607b
3 changed files with 11 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue