As its name suggestes, OwnedRegion should not be copied.
OwnedRegion should be moveable simialrly as std::unique_ptr<T>,
but the current implementation sets '_base' field as const field,
so it is impossible to implement move constructor.
As a workaround, this commit disables move on Owned Region
temporarily.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
}
public:
+ // Copy and move is not allowed
+ // TODO Allow move
+ OwnedRegion(const OwnedRegion &) = delete;
+ OwnedRegion(OwnedRegion &&r) = delete;
+
+public:
~OwnedRegion() { delete[] _base; }
public: