Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61954 - sandbox/SOC/2010/bit_masks/boost/integer
From: bbartmanboost_at_[hidden]
Date: 2010-05-13 12:33:45


Author: bbartman
Date: 2010-05-13 12:33:44 EDT (Thu, 13 May 2010)
New Revision: 61954
URL: http://svn.boost.org/trac/boost/changeset/61954

Log:
working on pre condition and post condition testing
Text files modified:
   sandbox/SOC/2010/bit_masks/boost/integer/bit_mask.hpp | 9 +++++++++
   1 files changed, 9 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/boost/integer/bit_mask.hpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/boost/integer/bit_mask.hpp (original)
+++ sandbox/SOC/2010/bit_masks/boost/integer/bit_mask.hpp 2010-05-13 12:33:44 EDT (Thu, 13 May 2010)
@@ -27,6 +27,11 @@
     integral_constant<T, (low_bits<T,Width>::value << Offset) >
 {
     typedef bit_mask<T, Offset, Width> type;
+
+
+ T operator()() {
+ return type::value;
+ }
 };
 
 /** Integral Mask.
@@ -38,6 +43,10 @@
     integral_constant<T, Value>
 {
     typedef integral_mask<T,Value> type;
+
+ T operator()() {
+ return type::value;
+ }
 };
 
 } // namespace boost


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