--- a/src/list.h Sun Jul 20 17:25:36 2014 +0300 +++ b/src/list.h Mon Jul 21 17:14:42 2014 +0300 @@ -44,8 +44,9 @@ using ConstReverseIterator = typename std::deque<T>::const_reverse_iterator; List(); + List (std::size_t numvalues); List (const std::deque<T>& a); - List (std::initializer_list<T>and a); + List (std::initializer_list<T>&& a); inline T& append (const T& value); inline Iterator begin(); @@ -101,10 +102,14 @@ _deque (other) {} template<typename T> -List<T>::List (std::initializer_list<T>and a) : +List<T>::List (std::initializer_list< T > && a) : _deque (a) {} template<typename T> +List<T>::List (std::size_t numvalues) : + _deque (numvalues) {} + +template<typename T> inline typename List<T>::Iterator List<T>::begin() { return _deque.begin();