Skip to content

Commit 3a53141

Browse files
committed
Merge pull request justinhj#1 from hoshi10/master
Modifications to solve some compile issues
2 parents 1bfb88f + 8bb1397 commit 3a53141

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

‎stlastar.h‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ given where due.
2323
2424
*/
2525

26+
#ifndef STLASTAR_H
27+
#define STLASTAR_H
2628
// used for text debugging
2729
#include <iostream>
2830
#include <stdio.h>
@@ -111,7 +113,18 @@ template <class UserState> class AStarSearch
111113

112114

113115
// constructor just initialises private data
114-
AStarSearch( int MaxNodes = 1000 ) :
116+
AStarSearch() :
117+
m_AllocateNodeCount(0),
118+
#if USE_FSA_MEMORY
119+
m_FixedSizeAllocator( 1000 ),
120+
#endif
121+
m_State( SEARCH_STATE_NOT_INITIALISED ),
122+
m_CurrentSolutionNode( NULL ),
123+
m_CancelRequest( false )
124+
{
125+
}
126+
127+
AStarSearch( int MaxNodes ) :
115128
m_AllocateNodeCount(0),
116129
#if USE_FSA_MEMORY
117130
m_FixedSizeAllocator( MaxNodes ),
@@ -749,6 +762,6 @@ template <class UserState> class AStarSearch
749762

750763
};
751764

752-
765+
#endif
753766

754767

0 commit comments

Comments
 (0)