Skip to content
Snippets Groups Projects
Commit 21f43f5f authored by Markus Blatt's avatar Markus Blatt
Browse files

Size of poolallocator is now in number of values and not bytes.

[[Imported from SVN: r5385]]
parent 26dfe776
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,7 @@ namespace Dune
* @brief The size in bytes to use for every memory chunk
* allocated.
*/
size=s
size=s*sizeof(value_type)
};
/**
......@@ -349,7 +349,7 @@ namespace Dune
/**
* @brief The underlying memory pool.
*/
static Pool<T,s> memoryPool_;
static Pool<T,PoolAllocator::size> memoryPool_;
};
// specialization for void
......@@ -526,7 +526,7 @@ namespace Dune
}
template<class T, std::size_t s>
Pool<T,s> PoolAllocator<T,s>::memoryPool_;
Pool<T,PoolAllocator<T,s>::size> PoolAllocator<T,s>::memoryPool_;
template<class T, std::size_t s>
inline PoolAllocator<T,s>::PoolAllocator()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment