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:
@@ -38,6 +38,11 @@
|
||||
namespace ceres {
|
||||
namespace internal {
|
||||
|
||||
using std::make_pair;
|
||||
using std::pair;
|
||||
using std::set;
|
||||
using std::vector;
|
||||
|
||||
TEST(BlockRandomAccessSparseMatrix, GetCell) {
|
||||
vector<int> blocks;
|
||||
blocks.push_back(3);
|
||||
@@ -169,7 +174,8 @@ class BlockRandomAccessSparseMatrixTest : public ::testing::Test {
|
||||
};
|
||||
|
||||
TEST_F(BlockRandomAccessSparseMatrixTest, IntPairToLongOverflow) {
|
||||
CheckIntPairToLong(numeric_limits<int>::max(), numeric_limits<int>::max());
|
||||
CheckIntPairToLong(std::numeric_limits<int>::max(),
|
||||
std::numeric_limits<int>::max());
|
||||
}
|
||||
|
||||
TEST_F(BlockRandomAccessSparseMatrixTest, LongToIntPair) {
|
||||
|
||||
Reference in New Issue
Block a user