mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
Code refactoring-4.
This commit is contained in:
parent
39ace8350b
commit
c602455312
@ -156,7 +156,7 @@ class EightPuzzle {
|
||||
* @details Move assignment operator
|
||||
* @param A a reference of an EightPuzzle
|
||||
*/
|
||||
EightPuzzle &operator=(const EightPuzzle &&A) noexcept {
|
||||
EightPuzzle const &operator=(const EightPuzzle &&A) noexcept {
|
||||
board = std::move(A.board);
|
||||
return *this;
|
||||
}
|
||||
@ -328,7 +328,7 @@ class AyStarSearch {
|
||||
/**
|
||||
* @details move assignment operator
|
||||
*/
|
||||
Info &operator=(const Info &&A) noexcept {
|
||||
Info const &operator=(const Info &&A) noexcept {
|
||||
state = std::move(A.state);
|
||||
heuristic_value = std::move(A.heuristic_value);
|
||||
depth = std::move(A.depth);
|
||||
|
Loading…
x
Reference in New Issue
Block a user