-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
AStar::Node::Node(Vec3i coordinates_, Node *parent_) {
parent = parent_;
coordinates = coordinates_;
G = H = 0;
}
这个构造函数的第二个参数没有默认参数,是否应该添加上去呢?如下:
AStar::Node::Node(Vec3i coordinates_, Node *parent_ = nullptr) {
parent = parent_;
coordinates = coordinates_;
G = H = 0;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels