Skip to content
Snippets Groups Projects
Commit 5022591c authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: return old file handler on change

- intended for the following type of use:

      auto oldHandler = fileHandler(fileOperation::NewUncollated());

      ... do something that only works with uncollated

      // Restore previous (if any)
      if (oldHandler)
      {
          fileHandler(std::move(oldHandler));
      }

ENH: make fileOperation distributed(bool) mutable

- use is "static-like" and akin to Pstream::parRun(bool),
  thus allow toggling of the switch without a const_cast
parent 2a438385
Branches
Tags
1 merge request!446collected changes for Lists, faces and PrimitivePatch
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment