mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Replace scoped_ptr with C++11's unique_ptr
Change-Id: Ib5a504c491e3a79af52a95accf009df473470c6b
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user