Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63858 - in sandbox/SOC/2010/bit_masks/boost/integer: . detail/bft/msvc_fixes detail/bft/msvc_fixes/msvc9
From: bbartmanboost_at_[hidden]
Date: 2010-07-11 08:49:09


Author: bbartman
Date: 2010-07-11 08:49:08 EDT (Sun, 11 Jul 2010)
New Revision: 63858
URL: http://svn.boost.org/trac/boost/changeset/63858

Log:
working on fixing a strange msvc error/behavior
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 7 ++++++-
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp | 4 ++--
   sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp | 11 +++++++++++
   3 files changed, 19 insertions(+), 3 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp 2010-07-11 08:49:08 EDT (Sun, 11 Jul 2010)
@@ -21,7 +21,7 @@
 #include <boost/integer/detail/bft/ext/bitfield_tuple_fusion_includes.hpp>
 #include <boost/integer/detail/fusion_ext_includes.hpp>
 #include <boost/integer/detail/bft/make_bitfield_tuple.hpp>
-
+#include <boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp>
 
 
 namespace boost {
@@ -32,6 +32,11 @@
     : protected detail::bitfield_tuple_base<
         BOOST_BFT_PARAMETER_LIST()
>
+#ifdef BOOST_MSVC
+ , boost::detail::msvc_fixes::msvc9_make_bft_fix<
+ bitfield_tuple<BOOST_BFT_PARAMETER_LIST()>
+ >
+#endif
 {
 private:
     typedef detail::bitfield_tuple_base<BOOST_BFT_PARAMETER_LIST()> _base;

Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc9/msvc_make_bitfield_tuple_fix.hpp 2010-07-11 08:49:08 EDT (Sun, 11 Jul 2010)
@@ -6,8 +6,7 @@
 #ifndef BOOST_BFT_MSVC9_MAKE_BFT_FIX_HPP
 #define BOOST_BFT_MSVC9_MAKE_BFT_FIX_HPP
 
-typedef ::boost::bitfield_tuple< bitfield::storage<int> > fixer_tuple;
-
+namespace boost { namespace detail { namespace msvc_fixes {
 /** Used for fixing an inadequacy in MSVC9 which causes my make_bitfield_tuple
  * function template parameters not to be instantiated unless they are
  * typedef'ed peior to the function declaration.
@@ -34,4 +33,5 @@
     BOOST_MAKE_BFT_COMPENSATE_FOR_MSVC()
 };
 
+}}} // end boost::detail::msvc_fixes
 #endif

Modified: sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp 2010-07-11 08:49:08 EDT (Sun, 11 Jul 2010)
@@ -0,0 +1,11 @@
+// Copyright 2010 Brian Bartman.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#include <boost/config.hpp>
+
+#ifdef BOOST_MSVC
+// msvc 9 includes.
+#include "msvc9/msvc_make_bitfield_tuple_fix.hpp"
+#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