$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r67863 - sandbox/variadic_templates/boost/composite_storage/layout
From: cppljevans_at_[hidden]
Date: 2011-01-09 09:19:44
Author: cppljevans
Date: 2011-01-09 09:19:43 EST (Sun, 09 Jan 2011)
New Revision: 67863
URL: http://svn.boost.org/trac/boost/changeset/67863
Log:
Add  #include <memory> to handle placement new.
Text files modified: 
   sandbox/variadic_templates/boost/composite_storage/layout/operators_all_of_aligned.hpp |     2 ++                                      
   sandbox/variadic_templates/boost/composite_storage/layout/operators_one_of_maybe.hpp   |    20 +++++++++++---------                    
   2 files changed, 13 insertions(+), 9 deletions(-)
Modified: sandbox/variadic_templates/boost/composite_storage/layout/operators_all_of_aligned.hpp
==============================================================================
--- sandbox/variadic_templates/boost/composite_storage/layout/operators_all_of_aligned.hpp	(original)
+++ sandbox/variadic_templates/boost/composite_storage/layout/operators_all_of_aligned.hpp	2011-01-09 09:19:43 EST (Sun, 09 Jan 2011)
@@ -17,6 +17,8 @@
 #include <boost/composite_storage/special_components.hpp>
 #include <boost/mpl/next.hpp>
 
+#include <memory>
+
 namespace boost
 {
 namespace composite_storage
Modified: sandbox/variadic_templates/boost/composite_storage/layout/operators_one_of_maybe.hpp
==============================================================================
--- sandbox/variadic_templates/boost/composite_storage/layout/operators_one_of_maybe.hpp	(original)
+++ sandbox/variadic_templates/boost/composite_storage/layout/operators_one_of_maybe.hpp	2011-01-09 09:19:43 EST (Sun, 09 Jan 2011)
@@ -16,6 +16,8 @@
 #include <boost/composite_storage/special_components.hpp>
 #include <boost/mpl/next.hpp>
 
+#include <memory>
+
 namespace boost
 {
 namespace composite_storage
@@ -80,19 +82,19 @@
         {
         }
             static
-          special_components::nothing const*
+          special_components::nothing const&
         project(index_part index_arg, char const*buffer_composite)
         {
             return tail_type::_();
         }
             static
-          special_components::nothing*
+          special_components::nothing&
         project(index_part index_arg, char*buffer_composite)
         {
             return tail_type::_();
         }
             static
-          special_components::nothing*
+          special_components::nothing&
         project(index_part index_arg, buffers::rval_ref_buf buffer_composite)
         {
             return tail_type::_();
@@ -235,28 +237,28 @@
             project
             ;
                 static
-              TailComponent const*
+              TailComponent const&
             project(index_part index_arg, char const*buffer_composite)
             {
                 void const*tail_buffer=buffer_composite;
                 TailComponent const*tail_ptr=static_cast<TailComponent const*>(tail_buffer);
-                return tail_ptr;
+                return *tail_ptr;
             }
                 static
-              TailComponent*
+              TailComponent&
             project(index_part index_arg, char*buffer_composite)
             {
                 void*tail_buffer=buffer_composite;
                 TailComponent*tail_ptr=static_cast<TailComponent*>(tail_buffer);
-                return tail_ptr;
+                return *tail_ptr;
             }
                 static
-              TailComponent*
+              TailComponent&
             project(index_part index_arg, buffers::rval_ref_buf buffer_composite)
             {
                 void*tail_buffer=buffer_composite.my_buf;
                 TailComponent*tail_ptr=static_cast<TailComponent*>(tail_buffer);
-                return tail_ptr;
+                return *tail_ptr;
             }
               using HeadLayout::
             destroyer