aboutsummaryrefslogtreecommitdiffstats
path: root/include/mem_pool.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-04-25 23:28:41 +0000
committerlloyd <[email protected]>2007-04-25 23:28:41 +0000
commit454d4d7edc20c10ed7219f45698486902bba4880 (patch)
tree47701fea57f0faf515973f5f0bd0c002644b328d /include/mem_pool.h
parentc687e28e5a1bab7e2ce3595db1bac103f05d0875 (diff)
Check in a working fix for the mem_pool issues encountered by some Visual
Studio users.
Diffstat (limited to 'include/mem_pool.h')
-rw-r--r--include/mem_pool.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mem_pool.h b/include/mem_pool.h
index 199ee47b6..435acd5b0 100644
--- a/include/mem_pool.h
+++ b/include/mem_pool.h
@@ -46,9 +46,12 @@ class Pooling_Allocator : public Allocator
byte* alloc(u32bit) throw();
void free(void*, u32bit) throw();
- bool operator<(const void*) const;
bool operator<(const Memory_Block& other) const
- { return (buffer < other.buffer); }
+ {
+ if(buffer < other.buffer && other.buffer < buffer_end)
+ return false;
+ return (buffer < other.buffer);
+ }
private:
typedef u64bit bitmap_type;
static const u32bit BITMAP_SIZE = 8 * sizeof(bitmap_type);