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
diff --git a/internal/ceres/evaluator.h b/internal/ceres/evaluator.h
index 8fc60b8..7fec1ee 100644
--- a/internal/ceres/evaluator.h
+++ b/internal/ceres/evaluator.h
@@ -95,8 +95,8 @@
static bool Evaluate(Program* program,
int num_threads,
double* cost,
- vector<double>* residuals,
- vector<double>* gradient,
+ std::vector<double>* residuals,
+ std::vector<double>* gradient,
CRSMatrix* jacobian);
// Build and return a sparse matrix for storing and working with the Jacobian
@@ -190,12 +190,12 @@
// that the base class implementation does not have to worry about
// life time issues. Further, these calls are not expected to be
// frequent or performance sensitive.
- virtual map<string, int> CallStatistics() const {
- return map<string, int>();
+ virtual std::map<string, int> CallStatistics() const {
+ return std::map<string, int>();
}
- virtual map<string, double> TimeStatistics() const {
- return map<string, double>();
+ virtual std::map<string, double> TimeStatistics() const {
+ return std::map<string, double>();
}
};