mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-05-09 07:32:54 +08:00
Code refactoring-4.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user