mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Replace scoped_ptr with C++11's unique_ptr
Change-Id: Ib5a504c491e3a79af52a95accf009df473470c6b
This commit is contained in:
@@ -161,10 +161,10 @@
|
||||
#ifndef CERES_PUBLIC_NUMERIC_DIFF_COST_FUNCTION_H_
|
||||
#define CERES_PUBLIC_NUMERIC_DIFF_COST_FUNCTION_H_
|
||||
|
||||
#include <memory>
|
||||
#include "Eigen/Dense"
|
||||
#include "ceres/cost_function.h"
|
||||
#include "ceres/internal/numeric_diff.h"
|
||||
#include "ceres/internal/scoped_ptr.h"
|
||||
#include "ceres/numeric_diff_options.h"
|
||||
#include "ceres/sized_cost_function.h"
|
||||
#include "ceres/types.h"
|
||||
@@ -309,7 +309,7 @@ class NumericDiffCostFunction
|
||||
}
|
||||
|
||||
private:
|
||||
internal::scoped_ptr<CostFunctor> functor_;
|
||||
std::unique_ptr<CostFunctor> functor_;
|
||||
Ownership ownership_;
|
||||
NumericDiffOptions options_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user