Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62883 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail
From: bbartmanboost_at_[hidden]
Date: 2010-06-12 18:42:27


Author: bbartman
Date: 2010-06-12 18:42:26 EDT (Sat, 12 Jun 2010)
New Revision: 62883
URL: http://svn.boost.org/trac/boost/changeset/62883

Log:
adding compile failure test for one name tag and more then one member associated wih that name
Added:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/one_name_two_members.cpp (contents, props changed)
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/set_storage_more_then_once.cpp | 19 +++++++++++++++++++
   1 files changed, 19 insertions(+), 0 deletions(-)

Added: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/one_name_two_members.cpp
==============================================================================

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/set_storage_more_then_once.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/set_storage_more_then_once.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/set_storage_more_then_once.cpp 2010-06-12 18:42:26 EDT (Sat, 12 Jun 2010)
@@ -0,0 +1,19 @@
+// 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;
+
+struct red { };
+// Fails because storage is specified twice.
+typedef bitfield_tuple<storage<int>, storage<unsigned int>, member<int,red,3> > 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