Make "WindowedArray" a Movable Type

Needed to put such objects into standard containers.
This commit is contained in:
Bård Skaflestad 2021-03-23 22:58:35 +01:00
parent 0e5a7a335b
commit 762e256d2b

View File

@ -79,6 +79,11 @@ namespace Opm { namespace RestartIO { namespace Helpers {
throw std::invalid_argument("Window array with windowsize==0 is not permitted");
}
WindowedArray(const WindowedArray& rhs) = default;
WindowedArray(WindowedArray&& rhs) = default;
WindowedArray& operator=(const WindowedArray& rhs) = delete;
WindowedArray& operator=(WindowedArray&& rhs) = default;
/// Retrieve number of windows allocated for this array.
Idx numWindows() const
{