Skip to content

Commit 71a6c5a

Browse files
authored
Merge pull request #2 from mloskot/ml/remove-using-namespace-std
Remove using namespace std; from header
2 parents 829b23c + 70b7bef commit 71a6c5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Hungarian.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <cmath> // for fabs()
1515
#include "Hungarian.h"
1616

17+
using namespace std;
1718

1819
HungarianAlgorithm::HungarianAlgorithm(){}
1920
HungarianAlgorithm::~HungarianAlgorithm(){}

Hungarian.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
#include <iostream>
1616
#include <vector>
1717

18-
using namespace std;
1918

2019

2120
class HungarianAlgorithm
2221
{
2322
public:
2423
HungarianAlgorithm();
2524
~HungarianAlgorithm();
26-
double Solve(vector <vector<double> >& DistMatrix, vector<int>& Assignment);
25+
double Solve(std::vector <std::vector<double> >& DistMatrix, std::vector<int>& Assignment);
2726

2827
private:
2928
void assignmentoptimal(int *assignment, double *cost, double *distMatrix, int nOfRows, int nOfColumns);

testMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <iostream>
22
#include "Hungarian.h"
3-
3+
using namespace std;
44

55
int main(void)
66
{

0 commit comments

Comments
 (0)