mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user