BUG: incorrect return type for T() method. Regression from 3019f30b12

This commit is contained in:
Mark Olesen
2019-03-11 15:27:36 +01:00
committed by Andrew Heather
parent 773ec00d4b
commit bbd8b15437
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
api=1901 api=1902
patch=0 patch=0

View File

@ -620,7 +620,7 @@ VSForm Foam::Field<Type>::block(const label start) const
template<class Type> template<class Type>
Foam::tmp<Foam::Field<Type>> Foam::Field<Type>::T() const Foam::tmp<Foam::Field<Type>> Foam::Field<Type>::T() const
{ {
auto tres = tmp<Field<cmptType>>::New(this->size()); auto tres = tmp<Field<Type>>::New(this->size());
::Foam::T(tres.ref(), *this); ::Foam::T(tres.ref(), *this);
return tres; return tres;
} }