Skip to content
Snippets Groups Projects
Commit 87b8f862 authored by mattijs's avatar mattijs
Browse files

illegal use of List_ELEM macro

parent a0b0e23c
No related branches found
No related tags found
No related merge requests found
......@@ -162,13 +162,14 @@ Foam::List<T>::List(const UList<T>& a, const unallocLabelList& map)
{
if (this->size_)
{
// Note:cannot use List_ELEM since third argument has to be index.
this->v_ = new T[this->size_];
List_ACCESS(T, (*this), vp);
List_CONST_ACCESS(T, a, ap);
List_FOR_ALL(map, i)
List_ELEM((*this), vp, i) = List_ELEM(a, ap, (map[i]));
List_END_FOR_ALL
forAll(*this, i)
{
this->v_[i] = a[map[i]];
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment