From 6c5c308ea80b3c4f2523b4c41e99c936b2a8b882 Mon Sep 17 00:00:00 2001 From: Etienne Renault Date: Sat, 3 Dec 2016 17:43:23 +0100 Subject: [PATCH] bricks: adapt with the new bricks * bricks/brick-hash, tests/core/bricks.cc: here. --- bricks/brick-hash | 1 + tests/core/bricks.cc | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/bricks/brick-hash b/bricks/brick-hash index cb0a2b950..c39fe993b 100644 --- a/bricks/brick-hash +++ b/bricks/brick-hash @@ -30,6 +30,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include "brick-assert" +#include #include #include // pair diff --git a/tests/core/bricks.cc b/tests/core/bricks.cc index f698fdd0b..ee8e7294e 100644 --- a/tests/core/bricks.cc +++ b/tests/core/bricks.cc @@ -17,8 +17,8 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -#include -#include +#include +#include struct both { @@ -54,9 +54,6 @@ int main() // Declare concurrent hash table brick::hashset::FastConcurrent> ht2; - // Set initial size - ht2.setSize(1024); - // Declare workers and provide them some jobs. std::vector workers; for (int i = 0; i < 6; i++) @@ -75,6 +72,7 @@ int main() for (unsigned i = 0; i < ht2.size(); ++ i) if (ht2.valid(i)) std::cout << i << ": {" - << ht2[i].x << ',' << ht2[i].y << "}\n"; + << ht2.valueAt(i).x << ',' + << ht2.valueAt(i).y << "}\n"; return 0; }