Commit cf065aad authored by Andrew Heather's avatar Andrew Heather
Browse files

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

parent c782b093
......@@ -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())
{}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment