Code refactoring-5.

This commit is contained in:
Ashish Bhanu Daulatabad
2021-03-23 22:12:29 +05:30
parent fbbc8df791
commit 387ceaf147

View File

@@ -156,7 +156,7 @@ class EightPuzzle {
* @details Move assignment operator
* @param A a reference of an EightPuzzle
*/
EightPuzzle operator=(const EightPuzzle &&A) noexcept {
EightPuzzle &operator=(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 &operator=(Info &&A) noexcept {
state = std::move(A.state);
heuristic_value = std::move(A.heuristic_value);
depth = std::move(A.depth);