diff options
| author | thecharlesblake | 2018-01-12 17:55:56 +0000 |
|---|---|---|
| committer | thecharlesblake | 2018-01-12 17:55:56 +0000 |
| commit | 01083ef011143eef36f8f83ecbdae8da6e948021 (patch) | |
| tree | 8192d4c8e6e9a61c44c8f96be2dd7d7b3ff395b0 /src/main/game/global_cache.h | |
| parent | Add unit tests for global cache (diff) | |
| download | metasol-01083ef011143eef36f8f83ecbdae8da6e948021.tar.gz metasol-01083ef011143eef36f8f83ecbdae8da6e948021.zip | |
Implement symmetrical hash for cards
Diffstat (limited to 'src/main/game/global_cache.h')
| -rw-r--r-- | src/main/game/global_cache.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/game/global_cache.h b/src/main/game/global_cache.h index b35acc6..a5c6768 100644 --- a/src/main/game/global_cache.h +++ b/src/main/game/global_cache.h @@ -18,12 +18,13 @@ public: bool insert(const std::vector<pile>&); bool contains(const std::vector<pile>&); + friend std::size_t hash_value(card const&); private: + static sol_rules rules; std::unordered_set< std::vector<pile>, boost::hash<std::vector<pile>> > u_set; }; - #endif //SOLVITAIRE_GLOBAL_CACHE_H |
