diff --git a/src/memory/allocator_wrapper.h b/src/memory/allocator_wrapper.h index d31b815..ebf87eb 100755 --- a/src/memory/allocator_wrapper.h +++ b/src/memory/allocator_wrapper.h @@ -52,9 +52,9 @@ public: allocator_wrapper() noexcept {} // no copy - allocator_wrapper(const allocator_wrapper& rhs) noexcept {} + allocator_wrapper(const allocator_wrapper&) noexcept {} template - allocator_wrapper(const allocator_wrapper& rhs) noexcept {} + allocator_wrapper(const allocator_wrapper&) noexcept {} allocator_wrapper(allocator_wrapper && rhs) noexcept : alloc_(std::move(rhs.alloc_)) {} template diff --git a/src/memory/resource.h b/src/memory/resource.h index 3d0cd15..a410034 100755 --- a/src/memory/resource.h +++ b/src/memory/resource.h @@ -19,7 +19,7 @@ namespace mem { using async_pool_alloc = static_wrapper, fixed_expand_policy<> >>>>; + static_alloc, fixed_expand_policy<> >>>>; template using allocator = allocator_wrapper; diff --git a/test/test_mem.cpp b/test/test_mem.cpp index e82007f..d67f682 100755 --- a/test/test_mem.cpp +++ b/test/test_mem.cpp @@ -127,7 +127,7 @@ void benchmark_alloc() { w = std::thread {[&, pid] { sw.start(); for (std::size_t k = 0; k < 100; ++k) - for (std::size_t n = (CacheSize * pid); n < (CacheSize * (pid + 1)); ++n) { + for (int n = (CacheSize * pid); n < (CacheSize * (pid + 1)); ++n) { std::size_t s = sizes__[n]; AllocT::free(AllocT::alloc(s), s); }