]> git.saurik.com Git - wxWidgets.git/commitdiff
Add ctor from two input iterators to wxArray in STL build too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 May 2013 14:13:22 +0000 (14:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 May 2013 14:13:22 +0000 (14:13 +0000)
This ctor already existed in non-STL build but was omitted from the STL
version.

Closes #15216.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dynarray.h

index aa066b54b8f7cc0f0299eab3f6eb6142657dd961..a7ebbfe176e552a764ee3662aeb12330baf599c9 100644 (file)
@@ -128,6 +128,8 @@ public:                                                             \
   name() : std::vector<T>() { }                                     \
   name(size_type n) : std::vector<T>(n) { }                         \
   name(size_type n, const_reference v) : std::vector<T>(n, v) { }   \
+  template <class InputIterator>                                    \
+  name(InputIterator first, InputIterator last) : std::vector<T>(first, last) { } \
                                                                     \
   void Empty() { clear(); }                                         \
   void Clear() { clear(); }                                         \