Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63265 - sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing
From: bbartmanboost_at_[hidden]
Date: 2010-06-23 15:29:39


Author: bbartman
Date: 2010-06-23 15:29:39 EDT (Wed, 23 Jun 2010)
New Revision: 63265
URL: http://svn.boost.org/trac/boost/changeset/63265

Log:
still working on a logical test scenario for the best way to use test the preprocessor macros.
Text files modified:
   sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp | 13 +++++++++----
   1 files changed, 9 insertions(+), 4 deletions(-)

Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/bft_testing/template_expansion_marco_test.cpp 2010-06-23 15:29:39 EDT (Wed, 23 Jun 2010)
@@ -6,15 +6,20 @@
 
 #include <boost/integer/bitfield_tuple.hpp>
 #include <boost/assert.hpp>
-
+#include <typeinfo>
+#include <iostream>
 
 using namespace boost;
+using namespace std;
 
-template <typename T0,BOOST_MAKE_BFT_TEMPLATE_PARAMS()>
-struct ham_bone { };
+template <BOOST_MAKE_BFT_TEMPLATE_PARAMS()>
+struct ham_bone {
+ virtual void foo() { }
+};
 
 int main() {
-
+ ham_bone<int,int,int,int,int,int,int,int,int,int> temp;
+ cout << typeid( &temp ).name() << endl;
     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