From efec323eba5b0971f2a30e08bd208af1aba04b26 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 11 Dec 2010 05:28:05 +0100 Subject: Add constructors to List. --- common/list.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/list.h b/common/list.h index cf429e5..2ad41fd 100644 --- a/common/list.h +++ b/common/list.h @@ -9,6 +9,13 @@ template > class List : public B { public: + //! Default constructor. + List() : B() {} + + //! Iterator constructor. + template + List(InputIterator first, InputIterator last) : B(first, last) {} + //! Sort the list. void sort() { std::sort(B::begin(), B::end()); -- cgit v1.2.3