|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64228 - sandbox/SOC/2010/bit_masks/boost/integer
From: bbartmanboost_at_[hidden]
Date: 2010-07-21 14:55:55
Author: bbartman
Date: 2010-07-21 14:55:54 EDT (Wed, 21 Jul 2010)
New Revision: 64228
URL: http://svn.boost.org/trac/boost/changeset/64228
Log:
working on fixing an optimization issue with for integral constant types
Text files modified:
sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 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-21 14:55:54 EDT (Wed, 21 Jul 2010)
@@ -29,6 +29,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/proxy_reference_policy.hpp>
// TODO: re evaluate if this is needed or not.
// #include <boost/integer/detail/bft/msvc_fixes/msvc_fix_includes.hpp>
@@ -70,7 +71,14 @@
>::type storage_t;
// typedef typename Bitfield
- typedef integer::bitfield<
+ typedef typename detail::select_packing_policy<
+ storage_t,
+ typename BitfieldElement::offset,
+ typename BitfieldElement::field_width,
+ return_type,
+ typename BitfieldElement::policy
+ >::type field_type;
+/* integer::bitfield<
storage_t,
BitfieldElement::offset::value,
BitfieldElement::offset::value
@@ -90,6 +98,7 @@
>
>::type
> field_type;
+*/
/** Reference constructor. */
explicit bitfield_reference(storage_t& field)
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