Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-01-13 10:12:48


Author: danieljames
Date: 2008-01-13 10:12:47 EST (Sun, 13 Jan 2008)
New Revision: 42720
URL: http://svn.boost.org/trac/boost/changeset/42720

Log:
Try to fix error calling allocate on IBM Visual Age C++.
Text files modified:
   branches/unordered/trunk/libs/unordered/test/helpers/allocator.hpp | 7 +++++++
   1 files changed, 7 insertions(+), 0 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-01-13 10:12:47 EST (Sun, 13 Jan 2008)
@@ -43,6 +43,13 @@
         }
 
         pointer allocate(size_type n, const_pointer u) { return allocate(n); }
+
+#if defined(__IBMCPP__)
+ // Workaround for IBM Visual Age which seems to use a void pointer
+ // for the second argument.
+ pointer allocate(size_type n, void const* u) { return allocate(n); }
+#endif
+
         void deallocate(pointer p, size_type) {
             using namespace std;
             free(p);


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