|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57662 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-11-14 15:20:59
Author: xushiwei
Date: 2009-11-14 15:20:59 EST (Sat, 14 Nov 2009)
New Revision: 57662
URL: http://svn.boost.org/trac/boost/changeset/57662
Log:
BOOST_MEMORY_DBG_FILL
Text files modified:
sandbox/memory/boost/memory/basic.hpp | 11 +++++++++++
sandbox/memory/boost/memory/fixed_alloc.hpp | 8 --------
sandbox/memory/boost/memory/pool_alloc.hpp | 8 --------
3 files changed, 11 insertions(+), 16 deletions(-)
Modified: sandbox/memory/boost/memory/basic.hpp
==============================================================================
--- sandbox/memory/boost/memory/basic.hpp (original)
+++ sandbox/memory/boost/memory/basic.hpp 2009-11-14 15:20:59 EST (Sat, 14 Nov 2009)
@@ -57,6 +57,17 @@
#endif
// -------------------------------------------------------------------------
+// macro BOOST_MEMORY_DBG_FILL
+
+#ifndef BOOST_MEMORY_DBG_FILL
+#if defined(_DEBUG)
+#define BOOST_MEMORY_DBG_FILL(p, cb) memset(p, 0xcd, cb)
+#else
+#define BOOST_MEMORY_DBG_FILL(p, cb)
+#endif
+#endif
+
+// -------------------------------------------------------------------------
#ifndef BOOST_MEMORY_STATIC_ASSERT
#if defined(BOOST_STATIC_ASSERT)
Modified: sandbox/memory/boost/memory/fixed_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/fixed_alloc.hpp (original)
+++ sandbox/memory/boost/memory/fixed_alloc.hpp 2009-11-14 15:20:59 EST (Sat, 14 Nov 2009)
@@ -36,14 +36,6 @@
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
-#ifndef BOOST_MEMORY_DBG_FILL
-#if defined(_DEBUG)
-#define BOOST_MEMORY_DBG_FILL(p, cb) memset(p, 0xcd, cb)
-#else
-#define BOOST_MEMORY_DBG_FILL(p, cb)
-#endif
-#endif
-
template <class PolicyT>
class fixed_alloc
{
Modified: sandbox/memory/boost/memory/pool_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/pool_alloc.hpp (original)
+++ sandbox/memory/boost/memory/pool_alloc.hpp 2009-11-14 15:20:59 EST (Sat, 14 Nov 2009)
@@ -32,14 +32,6 @@
#define MIN(x, y) ((x) < (y) ? (x) : (y))
#endif
-#ifndef BOOST_MEMORY_DBG_FILL
-#if defined(_DEBUG)
-#define BOOST_MEMORY_DBG_FILL(p, cb) memset(p, 0xcd, cb)
-#else
-#define BOOST_MEMORY_DBG_FILL(p, cb)
-#endif
-#endif
-
template <class PolicyT>
class pool_alloc
{
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