From 60b86edcba4cd61a0b14aa5e1138a1dd1d7d8718 Mon Sep 17 00:00:00 2001 From: thecharlesblake Date: Thu, 18 Jan 2018 18:57:58 +0000 Subject: Tidy up game_state private access --- src/main/game/global_cache.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main/game/global_cache.h') diff --git a/src/main/game/global_cache.h b/src/main/game/global_cache.h index a3d1e48..486006c 100644 --- a/src/main/game/global_cache.h +++ b/src/main/game/global_cache.h @@ -13,17 +13,17 @@ #include "sol_rules.h" #include "game_state.h" +struct game_state_pred { + static bool comp_pile(const pile& x, const pile& y); + bool operator() (const game_state& x, const game_state& y) + const; +}; + class global_cache { public: bool insert(const game_state&); bool contains(const game_state&) const; void clear(); - - struct game_state_pred { - static bool comp_pile(const pile& x, const pile& y); - bool operator() (const game_state& x, const game_state& y) - const; - }; private: std::unordered_set< game_state, -- cgit v1.2.1