diff options
Diffstat (limited to 'tests/run/cpp_iterators_simple.h')
-rw-r--r-- | tests/run/cpp_iterators_simple.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/cpp_iterators_simple.h b/tests/run/cpp_iterators_simple.h index 3a4b50e3c..8373237d8 100644 --- a/tests/run/cpp_iterators_simple.h +++ b/tests/run/cpp_iterators_simple.h @@ -8,3 +8,14 @@ private: int len_; }; +class DoublePointerIterDefaultConstructible: public DoublePointerIter { + // an alternate version that is default-constructible +public: + DoublePointerIterDefaultConstructible() : + DoublePointerIter(0, 0) + {} + DoublePointerIterDefaultConstructible(double* start, int len) : + DoublePointerIter(start, len) + {} + +}; |