wrap global function in anonymous namespace
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
|
||||
using namespace StepParity;
|
||||
|
||||
|
||||
template <typename T>
|
||||
bool isEmpty(const std::vector<T> & vec, int columnCount) {
|
||||
namespace {
|
||||
template <typename T>
|
||||
bool isEmpty(const std::vector<T> & vec, int columnCount) {
|
||||
for (int i = 0; i < columnCount; i++)
|
||||
{
|
||||
if(static_cast<int>(vec[i]) != 0)
|
||||
@@ -17,9 +17,9 @@ bool isEmpty(const std::vector<T> & vec, int columnCount) {
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
float StepParityCost::getActionCost(State * initialState, State * resultState, std::vector<Row>& rows, int rowIndex, float elapsedTime)
|
||||
{
|
||||
Row &row = rows[rowIndex];
|
||||
|
||||
Reference in New Issue
Block a user