Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-04-01 08:31:27


Author: danieljames
Date: 2008-04-01 08:31:26 EDT (Tue, 01 Apr 2008)
New Revision: 43981
URL: http://svn.boost.org/trac/boost/changeset/43981

Log:
Cast the pointer in the Visual C++ 6.5 _Charalloc method.

Text files modified:
   branches/unordered/trunk/libs/unordered/test/helpers/allocator.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/helpers/allocator.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/helpers/allocator.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/helpers/allocator.hpp 2008-04-01 08:31:26 EDT (Tue, 01 Apr 2008)
@@ -70,7 +70,7 @@
             using namespace std;
             T* ptr = static_cast<T*>(malloc(n * sizeof(char)));
             if(!ptr) throw std::bad_alloc();
- return ptr;
+ return (char*) ptr;
         }
 #endif
     };


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk