Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63040 - in sandbox/SOC/2010/bit_masks: boost/integer/details/bft/ext lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-17 11:53:43


Author: bbartman
Date: 2010-06-17 11:53:42 EDT (Thu, 17 Jun 2010)
New Revision: 63040
URL: http://svn.boost.org/trac/boost/changeset/63040

Log:
implementation for deref is completed
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_iterator.hpp | 2 ++
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp | 6 +++++-
   2 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_iterator.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_iterator.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/bft/ext/bitfield_iterator.hpp 2010-06-17 11:53:42 EDT (Thu, 17 Jun 2010)
@@ -16,6 +16,8 @@
 #include <boost/mpl/void.hpp>
 #include <boost/fusion/iterator/value_of.hpp>
 #include <boost/fusion/include/value_of.hpp>
+#include <boost/fusion/iterator/deref.hpp>
+#include <boost/fusion/include/deref.hpp>
 
 
 

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/fusion_integration_testing.cpp 2010-06-17 11:53:42 EDT (Thu, 17 Jun 2010)
@@ -42,7 +42,11 @@
     }
     // Iterator deref
     {
-
+ typedef bitfield_tuple_iterator<test_tuple,0> Iter;
+ test_tuple temp;
+ temp.get<red>() = 3;
+ Iter it(temp);
+ BOOST_ASSERT(( fusion::result_of::deref<Iter>::call(it) == 3 ));
     }
     /*
     bmg_t bmg;


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