mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 08:34:37 +08:00
Replace scoped_ptr with C++11's unique_ptr
Change-Id: Ib5a504c491e3a79af52a95accf009df473470c6b
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
#include <numeric>
|
||||
#include <vector>
|
||||
|
||||
#include <memory>
|
||||
#include "ceres/dynamic_cost_function.h"
|
||||
#include "ceres/internal/scoped_ptr.h"
|
||||
#include "ceres/jet.h"
|
||||
#include "glog/logging.h"
|
||||
|
||||
@@ -244,7 +244,7 @@ class DynamicAutoDiffCostFunction : public DynamicCostFunction {
|
||||
}
|
||||
|
||||
private:
|
||||
internal::scoped_ptr<CostFunctor> functor_;
|
||||
std::unique_ptr<CostFunctor> functor_;
|
||||
};
|
||||
|
||||
} // namespace ceres
|
||||
|
||||
Reference in New Issue
Block a user