Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65811 - sandbox/variadic_templates/libs/composite_storage/sandbox
From: cppljevans_at_[hidden]
Date: 2010-10-07 12:18:58


Author: cppljevans
Date: 2010-10-07 12:18:55 EDT (Thu, 07 Oct 2010)
New Revision: 65811
URL: http://svn.boost.org/trac/boost/changeset/65811

Log:
Add final padding to print_layout_all::padding_all.
Now padding_all for both tagPs and Ptags is same.

Text files modified:
   sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp
==============================================================================
--- sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp (original)
+++ sandbox/variadic_templates/libs/composite_storage/sandbox/layout_all.1.cpp 2010-10-07 12:18:55 EDT (Thu, 07 Oct 2010)
@@ -94,8 +94,8 @@
       std::size_t
     padding_all
     ;
- print_layout_all(void)
- : padding_all(0)
+ print_layout_all(std::size_t a_padding=0)
+ : padding_all(a_padding)
     {}
         typedef
       components_aligned_yes::layout_data<>
@@ -167,7 +167,7 @@
         <<"aligned size="
         <<aligned_offset::value
         <<"\n";
- print_layout_all pla;
+ print_layout_all pla(aligned_offset::value-Composed::size);
       Composed composed;
       pla(composed);
     }


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