Hi,
Should the "==" be "="
Hi,
Should the "==" be "=" in the following function? I guess it is supposed to do a copy and "=" should be used instead of "==". Thnaks. =============================================== // Store previous iteration field template<class> class PatchField, class GeoMesh> void Foam::GeometricField<type,>::storePrevIter() const { if (!fieldPrevIterPtr_) { if (debug) { Info<< "Allocating previous iteration field" << endl <<>info() << endl; } fieldPrevIterPtr_ = new GeometricField<type,>(*this); } else { *fieldPrevIterPtr_ == *this; } } |
No: == is a forced assignment
No: == is a forced assignment version of =
|
All times are GMT -4. The time now is 06:30. |