From b42eebf506a41e3431e19471fb8d64e79469fdf5 Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 20 Dec 2006 20:55:36 +0000 Subject: Remove an include of assert.h When searching for last used, put the pointer into a Memory_Block first. That avoids a bug in Visual Studio. --- src/mem_pool.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index 35f6d07e7..8da63e0e1 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -10,8 +10,6 @@ #include #include -#include - namespace Botan { namespace { @@ -272,7 +270,8 @@ void Pooling_Allocator::get_more_core(u32bit in_bytes) } std::sort(blocks.begin(), blocks.end()); - last_used = std::lower_bound(blocks.begin(), blocks.end(), ptr); + last_used = std::lower_bound(blocks.begin(), blocks.end(), + Memory_Block(ptr)); } } -- cgit v1.2.3