|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63138 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail
From: bbartmanboost_at_[hidden]
Date: 2010-06-20 10:54:16
Author: bbartman
Date: 2010-06-20 10:54:15 EDT (Sun, 20 Jun 2010)
New Revision: 63138
URL: http://svn.boost.org/trac/boost/changeset/63138
Log:
adjusting compile failure tests to be more correct and not break during refactoring
Text files modified:
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_precond_width_zero.cpp | 12 ++++++++++--
sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_width_to_large.cpp | 11 +++++++++--
2 files changed, 19 insertions(+), 4 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_precond_width_zero.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_precond_width_zero.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_precond_width_zero.cpp 2010-06-20 10:54:15 EDT (Sun, 20 Jun 2010)
@@ -4,14 +4,22 @@
// http://www.boost.org/LICENSE_1_0.txt)
-#include <boost/integer/details/member.hpp>
+#include <boost/integer/bitfield_tuple.hpp>
using namespace boost;
// this fails when the assert for the precondition within member restricting
// it to be something other then 0 fails.
+
struct pink;
+typedef bitfield_tuple<
+ storage<int>,
+ member<int,pink,0>
+> btf_type;
+
int main() {
- typedef member<int,pink,0>::type failure;
+ btf_type temp;
+ // temp.get<pink>();
+ return 0;
}
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_width_to_large.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_width_to_large.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/compile_fail/member_width_to_large.cpp 2010-06-20 10:54:15 EDT (Sun, 20 Jun 2010)
@@ -4,13 +4,20 @@
// http://www.boost.org/LICENSE_1_0.txt)
-#include <boost/integer/details/member.hpp>
+#include <boost/integer/bitfield_tuple.hpp>
using namespace boost;
// this fails because the type in side member is to large for the return type.
struct pink;
+typedef bitfield_tuple<
+ storage<int>,
+ member<int,pink,33>
+> btf_type;
+
int main() {
- typedef member<int, pink, 33>::type failure;
+ btf_type temp;
+ // temp.get<pink>();
+ 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