1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
In file included from c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/queue:65
:0,
from Board.h:4,
from board.cpp:2:
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/bits/stl_queue.h: In instantia
tion of 'std::priority_queue<Board*, std::vector<Board*>, CompareBoard>':
board.cpp:126:14: instantiated from here
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/bits/stl_queue.h:380:18: error
: 'std::priority_queue<_Tp, _Sequence, _Compare>::comp' has incomplete type
Board.h:6:8: error: forward declaration of 'struct CompareBoard'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/bits/stl_queue.h: In member fu
nction 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_typ
e&) [with _Tp = Board*, _Sequence = std::vector<Board*>, _Compare = CompareBoard,
std::priority_queue<_Tp, _Sequence, _Compare>::value_type = Board*]':
board.cpp:126:29: instantiated from here
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/include/c++/bits/stl_queue.h:491:2: error:
using invalid field 'std::priority_queue<_Tp, _Sequence, _Compare>::comp'
|