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:
@@ -129,8 +129,8 @@
|
||||
#ifndef CERES_PUBLIC_AUTODIFF_COST_FUNCTION_H_
|
||||
#define CERES_PUBLIC_AUTODIFF_COST_FUNCTION_H_
|
||||
|
||||
#include <memory>
|
||||
#include "ceres/internal/autodiff.h"
|
||||
#include "ceres/internal/scoped_ptr.h"
|
||||
#include "ceres/sized_cost_function.h"
|
||||
#include "ceres/types.h"
|
||||
#include "glog/logging.h"
|
||||
@@ -219,7 +219,7 @@ class AutoDiffCostFunction : public SizedCostFunction<kNumResiduals,
|
||||
}
|
||||
|
||||
private:
|
||||
internal::scoped_ptr<CostFunctor> functor_;
|
||||
std::unique_ptr<CostFunctor> functor_;
|
||||
};
|
||||
|
||||
} // namespace ceres
|
||||
|
||||
Reference in New Issue
Block a user