|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r69529 - sandbox/guild/pool/boost/pool
From: john_at_[hidden]
Date: 2011-03-03 13:54:29
Author: johnmaddock
Date: 2011-03-03 13:54:28 EST (Thu, 03 Mar 2011)
New Revision: 69529
URL: http://svn.boost.org/trac/boost/changeset/69529
Log:
Add test for malloc/free macros.
Text files modified:
sandbox/guild/pool/boost/pool/pool.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/guild/pool/boost/pool/pool.hpp
==============================================================================
--- sandbox/guild/pool/boost/pool/pool.hpp (original)
+++ sandbox/guild/pool/boost/pool/pool.hpp 2011-03-03 13:54:28 EST (Thu, 03 Mar 2011)
@@ -108,9 +108,9 @@
typedef std::ptrdiff_t difference_type; //!< A signed integral type that can represent the difference of any two pointers.
static char * malloc BOOST_PREVENT_MACRO_SUBSTITUTION(const size_type bytes)
- { return static_cast<char *>(std::malloc(bytes)); }
+ { return static_cast<char *>((std::malloc)(bytes)); }
static void free BOOST_PREVENT_MACRO_SUBSTITUTION(char * const block)
- { std::free(block); }
+ { (std::free)(block); }
};
namespace details
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