summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/bits/stl_algobase.h
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-20 10:08:29 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-20 10:08:29 +0000
commit8df6486d38d2c05a054a2fb9db143b2409af5c35 (patch)
tree9f2e176c5b1aba9ea30091242e5df51a5104f28c /libstdc++-v3/include/bits/stl_algobase.h
parente9ddda8e712a996497dc4cd4f72af5bf52f48b91 (diff)
downloadppe42-gcc-8df6486d38d2c05a054a2fb9db143b2409af5c35.tar.gz
ppe42-gcc-8df6486d38d2c05a054a2fb9db143b2409af5c35.zip
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129509 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/stl_algobase.h')
-rw-r--r--libstdc++-v3/include/bits/stl_algobase.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/include/bits/stl_algobase.h b/libstdc++-v3/include/bits/stl_algobase.h
index 6a6e2e03bd4..75bf7e07f9b 100644
--- a/libstdc++-v3/include/bits/stl_algobase.h
+++ b/libstdc++-v3/include/bits/stl_algobase.h
@@ -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(); }
};
OpenPOWER on IntegriCloud