BUG: Corrected construction of List from SLList. Fixes #571

This commit is contained in:
Andrew Heather
2017-08-15 11:00:21 +01:00
parent c782b09322
commit cf065aade0

View File

@ -231,12 +231,10 @@ Foam::List<T>::List(const PtrList<T>& lst)
}
// Note: using first/last is not entirely accurate.
// But since the list size is correct, last() is actually ignored.
template<class T>
Foam::List<T>::List(const SLList<T>& lst)
:
List<T>(lst.first(), lst.last(), lst.size())
List<T>(lst.begin(), lst.end(), lst.size())
{}