mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Remove using namespace std;
For historical reasons we had a "using namespace std;" in port.h. This is generally a bad idea. So removing it and along the way doing a bunch of cpplint cleanup. Change-Id: Ia125601a55ae62695e247fb0250df4c6f86c46c6
This commit is contained in:
@@ -115,7 +115,7 @@ class CERES_EXPORT CostFunction {
|
||||
double* residuals,
|
||||
double** jacobians) const = 0;
|
||||
|
||||
const vector<int32>& parameter_block_sizes() const {
|
||||
const std::vector<int32>& parameter_block_sizes() const {
|
||||
return parameter_block_sizes_;
|
||||
}
|
||||
|
||||
@@ -124,7 +124,7 @@ class CERES_EXPORT CostFunction {
|
||||
}
|
||||
|
||||
protected:
|
||||
vector<int32>* mutable_parameter_block_sizes() {
|
||||
std::vector<int32>* mutable_parameter_block_sizes() {
|
||||
return ¶meter_block_sizes_;
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ class CERES_EXPORT CostFunction {
|
||||
private:
|
||||
// Cost function signature metadata: number of inputs & their sizes,
|
||||
// number of outputs (residuals).
|
||||
vector<int32> parameter_block_sizes_;
|
||||
std::vector<int32> parameter_block_sizes_;
|
||||
int num_residuals_;
|
||||
CERES_DISALLOW_COPY_AND_ASSIGN(CostFunction);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user