summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3/include/profile/vector
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-06 00:06:42 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-06 00:06:42 +0000
commit3edec8c4a20d04401dd877b92b282946475c41be (patch)
treea0c6c1ab914365cdd8c1d0ced44ef0e6d6774e1a /libstdc++-v3/include/profile/vector
parent9a28605ae35989708fa24cb316f8e722e51f2b45 (diff)
downloadppe42-gcc-3edec8c4a20d04401dd877b92b282946475c41be.tar.gz
ppe42-gcc-3edec8c4a20d04401dd877b92b282946475c41be.zip
* include/profile/deque: Constrain InputIterator parameters.
* include/profile/forward_list: Likewise. * include/profile/list: Likewise. * include/profile/map.h: Likewise. * include/profile/multimap.h: Likewise. * include/profile/set.h: Likewise. * include/profile/multiset.h: Likewise. * include/profile/vector: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193196 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/profile/vector')
-rw-r--r--libstdc++-v3/include/profile/vector16
1 files changed, 13 insertions, 3 deletions
diff --git a/libstdc++-v3/include/profile/vector b/libstdc++-v3/include/profile/vector
index 8a3e681b847..fcd69627995 100644
--- a/libstdc++-v3/include/profile/vector
+++ b/libstdc++-v3/include/profile/vector
@@ -1,6 +1,6 @@
// Profiling vector implementation -*- C++ -*-
-// Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc.
+// Copyright (C) 2009-2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -109,7 +109,12 @@ namespace __profile
}
#endif
- template<class _InputIterator>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
+ template<typename _InputIterator,
+ typename = std::_RequireInputIter<_InputIterator>>
+#else
+ template<typename _InputIterator>
+#endif
vector(_InputIterator __first, _InputIterator __last,
const _Allocator& __a = _Allocator())
: _Base(__first, __last, __a)
@@ -401,7 +406,12 @@ namespace __profile
_M_profile_resize(this, __old_size, this->capacity());
}
- template<class _InputIterator>
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
+ template<typename _InputIterator,
+ typename = std::_RequireInputIter<_InputIterator>>
+#else
+ template<typename _InputIterator>
+#endif
void
insert(iterator __position,
_InputIterator __first, _InputIterator __last)
OpenPOWER on IntegriCloud