项目场景:
C++中写优先级序列,序列内存的是自定义的结构体,在自定义比较方式的时候系统报错:
error C2676: 二进制“<”:“const _Ty”不定义该运算符或到预定义运算符可接收的类型的转换
with
[
_Ty=Node
]
问题描述:
/**
* @prief 点的定义
*/
struct Node
{
int coordinateX;
int coordinateY;
Node* parent;
double gCost;
double hCost;
double fCost;
Node() : coordinateX(NULL), coordinateY(NULL), parent(nullptr) {
};
Node(int a, int b)