From 20df1a1399eb0c885bce6a471b398b5723394f5b Mon Sep 17 00:00:00 2001
From: Andreas Kloeckner <inform@tiker.net>
Date: Fri, 10 Aug 2018 00:32:10 -0500
Subject: [PATCH] Fix de-boostified mempool

---
 src/mempool.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mempool.hpp b/src/mempool.hpp
index 2f649e2b..b24fcb02 100644
--- a/src/mempool.hpp
+++ b/src/mempool.hpp
@@ -41,7 +41,7 @@ namespace PYGPU_PACKAGE
 
 
   template<class Allocator>
-  class memory_pool
+  class memory_pool : noncopyable
   {
     public:
       typedef typename Allocator::pointer_type pointer_type;
@@ -239,7 +239,7 @@ namespace PYGPU_PACKAGE
 
       void free_held()
       {
-        for (bin_pair_t bin_pair: m_container)
+        for (bin_pair_t &bin_pair: m_container)
         {
           bin_t &bin = bin_pair.second;
 
@@ -270,7 +270,7 @@ namespace PYGPU_PACKAGE
       bool try_to_free_memory()
       {
         // free largest stuff first
-        for (bin_pair_t bin_pair: reverse(m_container))
+        for (bin_pair_t &bin_pair: reverse(m_container))
         {
           bin_t &bin = bin_pair.second;
 
-- 
GitLab