Skip to content
Snippets Groups Projects
Commit ec9883f3 authored by Henry Weller's avatar Henry Weller
Browse files

Field: Added constructor from UIndirectList

Patch contributed by Mattijs Janssens
parent 4bdf712b
Branches
Tags
No related merge requests found
......@@ -244,6 +244,13 @@ Foam::Field<Type>::Field(const UList<Type>& list)
{}
template<class Type>
Foam::Field<Type>::Field(const UIndirectList<Type>& list)
:
List<Type>(list)
{}
#ifndef NoConstructFromTmp
template<class Type>
Foam::Field<Type>::Field(const tmp<Field<Type>>& tf)
......
......@@ -123,6 +123,9 @@ public:
//- Construct as copy of a UList\<Type\>
explicit Field(const UList<Type>&);
//- Construct as copy of a UIndirectList\<Type\>
explicit Field(const UIndirectList<Type>&);
//- Construct by transferring the List contents
explicit Field(const Xfer<List<Type>>&);
......
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