Boost logo

Boost-Commit :

From: xushiweizh_at_[hidden]
Date: 2008-04-30 15:50:42


Author: xushiwei
Date: 2008-04-30 15:50:41 EDT (Wed, 30 Apr 2008)
New Revision: 44948
URL: http://svn.boost.org/trac/boost/changeset/44948

Log:
BOOST_MEMORY_NO_PARTIAL_SPECIAILIZATION
Text files modified:
   sandbox/memory/boost/memory.hpp | 2 +-
   sandbox/memory/boost/memory/basic.hpp | 10 ++++------
   2 files changed, 5 insertions(+), 7 deletions(-)

Modified: sandbox/memory/boost/memory.hpp
==============================================================================
--- sandbox/memory/boost/memory.hpp (original)
+++ sandbox/memory/boost/memory.hpp 2008-04-30 15:50:41 EDT (Wed, 30 Apr 2008)
@@ -81,7 +81,7 @@
         AllocT* inner_GetAlloc() const { return m_alloc; }
 };
 
-#if defined(BOOST_MEMORY_SUPPORT_PARTIAL_TEMPLATE)
+#if !defined(BOOST_MEMORY_NO_PARTIAL_SPECIAILIZATION)
 
 template <class AllocT>
 class stl_allocator<void, AllocT>

Modified: sandbox/memory/boost/memory/basic.hpp
==============================================================================
--- sandbox/memory/boost/memory/basic.hpp (original)
+++ sandbox/memory/boost/memory/basic.hpp 2008-04-30 15:50:41 EDT (Wed, 30 Apr 2008)
@@ -49,14 +49,12 @@
 
 // -------------------------------------------------------------------------
 
-#if !defined(BOOST_NO_PARTIAL_SPECIAILIZATION)
- #define BOOST_MEMORY_SUPPORT_PARTIAL_TEMPLATE
+#if defined(BOOST_NO_PARTIAL_SPECIAILIZATION)
+ #define BOOST_MEMORY_NO_PARTIAL_SPECIAILIZATION
 #elif defined(_MSC_VER)
- #if (_MSC_VER > 1200)
- #define BOOST_MEMORY_SUPPORT_PARTIAL_TEMPLATE
+ #if (_MSC_VER <= 1200)
+ #define BOOST_MEMORY_NO_PARTIAL_SPECIAILIZATION
         #endif
-#elif defined(__GNUG__)
- #define BOOST_MEMORY_SUPPORT_PARTIAL_TEMPLATE
 #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