|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50273 - trunk/boost/interprocess
From: igaztanaga_at_[hidden]
Date: 2008-12-14 16:44:01
Author: igaztanaga
Date: 2008-12-14 16:43:59 EST (Sun, 14 Dec 2008)
New Revision: 50273
URL: http://svn.boost.org/trac/boost/changeset/50273
Log:
Fixed static "PageSize" variable initialization for DLLs
Text files modified:
trunk/boost/interprocess/mapped_region.hpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/boost/interprocess/mapped_region.hpp
==============================================================================
--- trunk/boost/interprocess/mapped_region.hpp (original)
+++ trunk/boost/interprocess/mapped_region.hpp 2008-12-14 16:43:59 EST (Sun, 14 Dec 2008)
@@ -553,7 +553,12 @@
= mapped_region::page_size_holder<dummy>::get_page_size();
inline std::size_t mapped_region::get_page_size()
-{ return page_size_holder<0>::PageSize; }
+{
+ if(!page_size_holder<0>::PageSize)
+ return page_size_holder<0>::get_page_size();
+ else
+ return page_size_holder<0>::PageSize;
+}
#if !defined(BOOST_INTERPROCESS_RVALUE_REFERENCE) && !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
inline void mapped_region::swap(mapped_region &other)
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