Replace scoped_ptr with C++11's unique_ptr

Change-Id: Ib5a504c491e3a79af52a95accf009df473470c6b
This commit is contained in:
Keir Mierle
2018-03-30 16:16:59 -07:00
parent fc9336e12a
commit 7c4e8a454e
120 changed files with 427 additions and 728 deletions
+2 -2
View File
@@ -40,13 +40,13 @@
#define CERES_PUBLIC_PROBLEM_IMPL_H_
#include <map>
#include <memory>
#include <unordered_set>
#include <vector>
#include "ceres/context_impl.h"
#include "ceres/internal/macros.h"
#include "ceres/internal/port.h"
#include "ceres/internal/scoped_ptr.h"
#include "ceres/problem.h"
#include "ceres/types.h"
@@ -209,7 +209,7 @@ class ProblemImpl {
ResidualBlockSet residual_block_set_;
// The actual parameter and residual blocks.
internal::scoped_ptr<internal::Program> program_;
std::unique_ptr<internal::Program> program_;
// When removing parameter blocks, parameterizations have ambiguous
// ownership. Instead of scanning the entire problem to see if the