ENH: remove reliance on the Xfer class (issue #639)

This class is largely a pre-C++11 holdover. It is now possible to
simply use move construct/assignment directly.

In a few rare cases (eg, polyMesh::resetPrimitives) it has been
replaced by an autoPtr.
This commit is contained in:
Mark Olesen
2018-03-05 13:28:53 +01:00
parent 57291e8692
commit 3d608bf06a
241 changed files with 3106 additions and 3971 deletions

View File

@ -865,7 +865,7 @@ int main(int argc, char *argv[])
IOobject::NO_WRITE,
false
),
globalFaceFaces
std::move(globalFaceFaces)
);
IOglobalFaceFaces.write();
@ -881,7 +881,7 @@ int main(int argc, char *argv[])
IOobject::NO_WRITE,
false
),
visibleFaceFaces
std::move(visibleFaceFaces)
);
IOvisibleFaceFaces.write();
@ -895,7 +895,7 @@ int main(int argc, char *argv[])
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
map.xfer()
std::move(map)
);
IOmapDist.write();