From 6044095228ef5e1e366a952d385db052e55f0fb2 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 30 Mar 2019 17:52:51 +0100 Subject: [PATCH] fix: equivolume --- hyper.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hyper.h b/hyper.h index f8141566..eb3fc8de 100644 --- a/hyper.h +++ b/hyper.h @@ -21,6 +21,9 @@ void ignore(T&&) { // placate GCC's overzealous -Wunused-result } +template bool among(T x, V y) { return x == y; } +template bool among(T x, V y, U... u) { return x==y || among(x,u...); } + // functions and types used from the standard library using std::vector; using std::map; @@ -2481,9 +2484,6 @@ void pushThumper(cell *th, cell *cto); template T pick(T x, U... u) { std::initializer_list i = {x,u...}; return *(i.begin() + hrand(1+sizeof...(u))); } -template bool among(T x, V y) { return x == y; } -template bool among(T x, V y, U... u) { return x==y || among(x,u...); } - eLand getNewSealand(eLand old); bool createOnSea(eLand old);