Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64448 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail
From: bbartmanboost_at_[hidden]
Date: 2010-07-29 13:13:05


Author: bbartman
Date: 2010-07-29 13:13:04 EDT (Thu, 29 Jul 2010)
New Revision: 64448
URL: http://svn.boost.org/trac/boost/changeset/64448

Log:
working on adding additional compile failure tests
Added:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/pointer_mask_not_same_size_as_pointer.hpp (contents, props changed)

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/pointer_mask_not_same_size_as_pointer.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/pointer_mask_not_same_size_as_pointer.hpp 2010-07-29 13:13:04 EDT (Thu, 29 Jul 2010)
@@ -0,0 +1,25 @@
+// 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)
+
+
+#include <boost/integer/bitfield_tuple.hpp>
+
+using namespace boost;
+using namespace boost::bitfields;
+
+struct red { };
+
+// fails because the mask isn't the same size as the pointer.
+typedef bitfield_tuple<
+ storage<int>,
+ pointer<int,red,integral_constant<unsigned short, 0> >
+> bft;
+
+
+
+int main() {
+ bft();
+ return 0;
+}


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