aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/StdVector
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-04-21 11:52:25 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-04-21 11:52:25 +0000
commitc5c384cf069abbd61b794d8897f7d8a42af97ac9 (patch)
tree26df0ea89b5691fcd8c8740df2a29095fccfabf5 /Eigen/StdVector
parent5e5bac52d7c7eac058f47e7e3fc3504267eb0d09 (diff)
add missing vector ctor reported by Markus Moll on the ML
Diffstat (limited to 'Eigen/StdVector')
-rw-r--r--Eigen/StdVector3
1 files changed, 3 insertions, 0 deletions
diff --git a/Eigen/StdVector b/Eigen/StdVector
index 5ee07d299..ac6a174c6 100644
--- a/Eigen/StdVector
+++ b/Eigen/StdVector
@@ -74,6 +74,9 @@ namespace std {
typedef typename vector_base::size_type size_type; \
typedef typename vector_base::iterator iterator; \
explicit VECTOR(const allocator_type& __a = allocator_type()) : vector_base(__a) {} \
+ template<typename InputIterator> \
+ VECTOR(InputIterator first, InputIterator last, const allocator_type& __a = allocator_type()) \
+ : vector_base(first, last, __a) {} \
VECTOR(const VECTOR& c) : vector_base(c) {} \
VECTOR(size_type num, const value_type& val = value_type()) : vector_base(num, val) {} \
VECTOR(iterator start, iterator end) : vector_base(start, end) {} \