$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: danieljames_at_[hidden]
Date: 2007-07-07 05:39:31
Author: danieljames
Date: 2007-07-07 05:39:31 EDT (Sat, 07 Jul 2007)
New Revision: 7383
URL: http://svn.boost.org/trac/boost/changeset/7383
Log:
Get malloc_allocator working with Visual C++ 6 STL.
Text files modified: 
   sandbox/unordered/libs/unordered/test/helpers/allocator.hpp |     9 +++++++++                               
   1 files changed, 9 insertions(+), 0 deletions(-)
Modified: sandbox/unordered/libs/unordered/test/helpers/allocator.hpp
==============================================================================
--- sandbox/unordered/libs/unordered/test/helpers/allocator.hpp	(original)
+++ sandbox/unordered/libs/unordered/test/helpers/allocator.hpp	2007-07-07 05:39:31 EDT (Sat, 07 Jul 2007)
@@ -47,6 +47,15 @@
 
         bool operator==(malloc_allocator const& x) const { return true; }
         bool operator!=(malloc_allocator const& x) const { return false; }
+
+#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
+        template <class T> void deallocate(T* p, size_type) {
+            free(p);
+        }
+        char* _Charalloc(size_type n) {
+            return static_cast<char*>(malloc(n * sizeof(char)));
+        }
+#endif
     };
 }