From ac9a06b04144023e87d1a504cfe5598e7cf3d7b4 Mon Sep 17 00:00:00 2001 From: scratko Date: Mon, 24 Feb 2025 17:15:23 +0300 Subject: Refactoring in classes Moved friend declarations in classes --- solution_algorithm.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solution_algorithm.hpp') diff --git a/solution_algorithm.hpp b/solution_algorithm.hpp index 440264b..f182aa8 100644 --- a/solution_algorithm.hpp +++ b/solution_algorithm.hpp @@ -16,8 +16,6 @@ private: Node *parent_p; int depth; int evaluation; - friend struct std::hash>; - friend class ASearch; public: Node(std::vector& s, Node *p = nullptr, int d = 0, int e = 0) @@ -30,6 +28,8 @@ public: return first->evaluation > second->evaluation; } }; + friend struct std::hash>; + friend class ASearch; }; template<> -- cgit v1.2.3