Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62582 - in sandbox/SOC/2010/bit_masks/boost/integer: . details
From: bbartmanboost_at_[hidden]
Date: 2010-06-08 11:05:45


Author: bbartman
Date: 2010-06-08 11:05:43 EDT (Tue, 08 Jun 2010)
New Revision: 62582
URL: http://svn.boost.org/trac/boost/changeset/62582

Log:
working on fixing little bugs within some of my code.
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bitfield_tuple.hpp | 6 +++++-
   sandbox/SOC/2010/bit_masks/boost/integer/details/member.hpp | 30 ++++++++++++++++++++++++++++++
   sandbox/SOC/2010/bit_masks/boost/integer/details/storage.hpp | 7 ++++---
   3 files changed, 39 insertions(+), 4 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-06-08 11:05:43 EDT (Tue, 08 Jun 2010)
@@ -9,8 +9,12 @@
 
 #include <boost/mpl/vector.hpp>
 #include <boost/mpl/map.hpp>
-#include <boost/integer/details/tagged.hpp>
+
+// #include <boost/integer/details/tagged.hpp>
+
 #include <boost/integer/details/storage.hpp>
+#include <boost/integer/details/member.hpp>
+
 namespace boost {
 
 namespace detials {

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/member.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/member.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/member.hpp 2010-06-08 11:05:43 EDT (Tue, 08 Jun 2010)
@@ -0,0 +1,30 @@
+// 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)
+
+
+#ifndef BOOST_MEMBER_FIELD_HPP
+#define BOOST_MEMBER_FIELD_HPP
+#include <cstddef>
+#include <boost/type_traits.hpp>
+
+namespace boost {
+
+/** The purpose of the member struct is to provide a simple way of passing
+ * parameters into a bitfield_tuple or bit_mask_tuple. The use of this is
+ * specifically to associate a group of parameters to gather within a type
+ * and make it easier for the data structure to figure out what to do with
+ * those parameter.
+ */
+
+template <typename ReturnType, typename Name, std::size_t FieldWidth>
+struct member {
+ typedef ReturnType return_type;
+ typedef Name name_type;
+ BOOST_STATIC_CONSTANT(std::size_t, field_width = FieldWidth);
+};
+
+} // end boost
+
+#endif

Modified: sandbox/SOC/2010/bit_masks/boost/integer/details/storage.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/details/storage.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/details/storage.hpp 2010-06-08 11:05:43 EDT (Tue, 08 Jun 2010)
@@ -7,8 +7,9 @@
 #ifndef BOOST_BIT_MASKS_TAGGED_HPP
 #define BOOST_BIT_MASKS_TAGGED_HPP
 
-#include <allocator>
+#include <memory>
 #include <boost/mpl/void.hpp>
+
 namespace boost {
 
 /** This forces the storage policy to allocate using the stack.
@@ -30,7 +31,7 @@
>
 struct storage {
     typedef StorageType storage_type;
- typedef Alloc::template rebind<StorageType>::type alloc;
+ typedef typename Alloc::template rebind<StorageType>::type alloc;
     typedef storage<StorageType, Alloc> type;
 };
 
@@ -43,7 +44,7 @@
  * to then deal with it accordingly.
  */
 template < typename StorageType>
-struct storage<StorageType< StorageType, storage_policy_stack > {
+struct storage<StorageType, storage_policy_stack > {
     typedef StorageType storage_type;
     typedef storage_policy_stack alloc;
     typedef storage<StorageType, storage_policy_stack> type;


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