Make Problem movable.

Add a default move constructor and move assignment operator.

https://github.com/ceres-solver/ceres-solver/issues/528

Change-Id: I16ecf367a800fde564c29e2b824cd4fb44111366
This commit is contained in:
Sameer Agarwal
2019-12-16 20:33:19 -08:00
parent 19728e72d4
commit 67fcff9182
2 changed files with 22 additions and 1 deletions
+4 -1
View File
@@ -189,8 +189,11 @@ class CERES_EXPORT Problem {
// invocation Problem(Problem::Options()).
Problem();
explicit Problem(const Options& options);
Problem(Problem&&) = default;
Problem& operator=(Problem&&) = default;
Problem(const Problem&) = delete;
void operator=(const Problem&) = delete;
Problem& operator=(const Problem&) = delete;
~Problem();