aboutsummaryrefslogtreecommitdiff
path: root/src/main/game/pile.cpp
diff options
context:
space:
mode:
authorthecharlesblake2018-01-12 18:05:07 +0000
committerthecharlesblake2018-01-12 18:05:07 +0000
commit895bbca6c0c7233fe11f331a10135443970ec4c5 (patch)
tree0b2f3c3f222c858c10dfdc3f09dfb97a2840ed82 /src/main/game/pile.cpp
parentImplement symmetrical hash for cards (diff)
downloadmetasol-895bbca6c0c7233fe11f331a10135443970ec4c5.tar.gz
metasol-895bbca6c0c7233fe11f331a10135443970ec4c5.zip

Implement hash for piles

Diffstat (limited to 'src/main/game/pile.cpp')
-rw-r--r--src/main/game/pile.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main/game/pile.cpp b/src/main/game/pile.cpp
index ad7b85e..ba7c1b9 100644
--- a/src/main/game/pile.cpp
+++ b/src/main/game/pile.cpp
@@ -5,12 +5,9 @@
#include <vector>
#include <ostream>
-#include <boost/functional/hash.hpp>
-
#include "pile.h"
using namespace std;
-using namespace boost;
pile::pile(std::vector<card> pv) : pile_vec(pv) {}
@@ -49,7 +46,3 @@ card pile::take() {
bool operator==(const pile& a, const pile& b) {
return a.pile_vec == b.pile_vec;
}
-
-size_t hash_value(pile const& p) {
- return hash_range(begin(p.pile_vec), end(p.pile_vec));
-}