Skip to content

Commit d5418fc

Browse files
committed
clang couldnt compile without this
1 parent 91f6c92 commit d5418fc

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

common.hpp

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#ifndef COMMON_HPP
22
#define COMMON_HPP
33

4-
namespace AI
5-
{
4+
#include <iostream>
5+
#include <tuple>
66

7-
namespace Private
8-
{
7+
using std::cout;
8+
using std::endl;
9+
using std::get;
10+
using std::tuple;
11+
using std::ostream;
912

10-
template <typename T>
11-
struct NodePtrCompare : std::less<T>
13+
14+
namespace AI
1215
{
13-
bool operator()(const T &lhs, const T &rhs) const
14-
{ return lhs->getState() < rhs->getState(); }
15-
};
1616

1717
template<typename T, int I>
1818
struct TuplePrint
@@ -66,6 +66,18 @@ void showRoute(const R & node )
6666
cout << endl;
6767
}
6868

69+
70+
namespace Private
71+
{
72+
73+
template <typename T>
74+
struct NodePtrCompare : std::less<T>
75+
{
76+
bool operator()(const T &lhs, const T &rhs) const
77+
{ return lhs->getState() < rhs->getState(); }
78+
};
79+
80+
6981
} // endnamespace Private
7082

7183
} // endnamespace AI

0 commit comments

Comments
 (0)