Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67232 - sandbox/tti/libs/tti/test
From: eldiener_at_[hidden]
Date: 2010-12-14 21:13:10


Author: eldiener
Date: 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
New Revision: 67232
URL: http://svn.boost.org/trac/boost/changeset/67232

Log:
Updated more tests
Added:
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefCompile.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail2.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail3.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail4.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail5.cpp (contents, props changed)
   sandbox/tti/libs/tti/test/TestHasTypeFail3.cpp (contents, props changed)
Removed:
   sandbox/tti/libs/tti/test/TestMemberTypeFail.cpp
   sandbox/tti/libs/tti/test/TestMemberTypeFail2.cpp
Text files modified:
   sandbox/tti/libs/tti/test/Jamfile.v2 | 10 +++++-
   sandbox/tti/libs/tti/test/TestHasType.cpp | 10 +++++++
   sandbox/tti/libs/tti/test/TestHasType.hpp | 10 +++++++
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.cpp | 57 ++++++++-------------------------------
   sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.hpp | 10 +++++++
   sandbox/tti/libs/tti/test/TestHasTypeCompile.cpp | 16 ++++++++++
   sandbox/tti/libs/tti/test/TestHasTypeFail.cpp | 4 ++
   sandbox/tti/libs/tti/test/TestHasTypeFail2.cpp | 4 ++
   sandbox/tti/libs/tti/test/TestMemberType.cpp | 10 +++++++
   sandbox/tti/libs/tti/test/TestMemberType.hpp | 10 +++++++
   sandbox/tti/libs/tti/test/TestMemberTypeCompile.cpp | 9 +++++
   11 files changed, 99 insertions(+), 51 deletions(-)

Modified: sandbox/tti/libs/tti/test/Jamfile.v2
==============================================================================
--- sandbox/tti/libs/tti/test/Jamfile.v2 (original)
+++ sandbox/tti/libs/tti/test/Jamfile.v2 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -47,10 +47,16 @@
         [ compile TestHasTypeCompile.cpp ]
         [ compile-fail TestHasTypeFail.cpp ]
         [ compile-fail TestHasTypeFail2.cpp ]
+ [ compile-fail TestHasTypeFail3.cpp ]
+ [ run TestHasTypeCheckTypedef.cpp ]
+ [ compile TestHasTypeCheckTypedefCompile.cpp ]
+ [ compile-fail TestHasTypeCheckTypedefFail.cpp ]
+ [ compile-fail TestHasTypeCheckTypedefFail2.cpp ]
+ [ compile-fail TestHasTypeCheckTypedefFail3.cpp ]
+ [ compile-fail TestHasTypeCheckTypedefFail4.cpp ]
+ [ compile-fail TestHasTypeCheckTypedefFail5.cpp ]
         [ run TestMemberType.cpp ]
         [ compile TestMemberTypeCompile.cpp ]
- [ compile-fail TestMemberTypeFail.cpp ]
- [ compile-fail TestMemberTypeFail2.cpp ]
         [ run TestMFHasMemberData.cpp ]
         [ compile TestMFHasMemberDataCompile.cpp ]
         [ compile-fail TestMFHasMemberDataFail.cpp ]

Modified: sandbox/tti/libs/tti/test/TestHasType.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasType.cpp (original)
+++ sandbox/tti/libs/tti/test/TestHasType.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,6 +4,16 @@
 int main()
   {
   
+ BOOST_TEST(tti::has_type_AnIntType<AType>::value);
+ BOOST_TEST(tti::has_type_AnIntTypeReference<AType>::value);
+ BOOST_TEST(tti::NameStruct<AType>::value);
+ BOOST_TEST(tti::has_type_BType<AType>::value);
+ BOOST_TEST(tti::TheInteger<AType::BType>::value);
+ BOOST_TEST(tti::has_type_CType<AType::BType>::value);
+ BOOST_TEST(tti::has_type_AnotherIntegerType<AType::BType::CType>::value);
+ BOOST_TEST(tti::SomethingElse<AnotherType>::value);
+ BOOST_TEST(!tti::has_type_NoOtherType<AnotherType>::value);
+
   return boost::report_errors();
 
   }

Modified: sandbox/tti/libs/tti/test/TestHasType.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasType.hpp (original)
+++ sandbox/tti/libs/tti/test/TestHasType.hpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,4 +4,14 @@
 #include "TestStructs.hpp"
 #include <boost/tti/TTIntrospection.hpp>
 
+TTI_HAS_TYPE(AnIntType)
+TTI_TRAIT_HAS_TYPE(NameStruct,AStructType)
+TTI_HAS_TYPE(AnIntTypeReference)
+TTI_HAS_TYPE(BType)
+TTI_TRAIT_HAS_TYPE(TheInteger,AnIntegerType)
+TTI_HAS_TYPE(CType)
+TTI_HAS_TYPE(AnotherIntegerType)
+TTI_TRAIT_HAS_TYPE(SomethingElse,someOtherType)
+TTI_HAS_TYPE(NoOtherType)
+
 #endif // TEST_HAS_TYPE_HPP

Modified: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.cpp (original)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -1,52 +1,19 @@
-#include "DiscoveryTest.hpp"
-#include <boost/mpl/assert.hpp>
-// #include <boost/type_traits/is_same.hpp>
-
-short AType::DSMember(5622);
+#include "TestHasTypeCheckTypedef.hpp"
+#include <boost/detail/lightweight_test.hpp>
 
 int main()
   {
   
- BOOST_MPL_ASSERT(( tti::has_type_AnIntType<AType> ));
- BOOST_MPL_ASSERT(( tti::has_type_AStructType<AType> ));
- BOOST_MPL_ASSERT(( tti::has_type_check_typedef_AnIntType<AType,int> ));
- BOOST_MPL_ASSERT(( tti::has_type_check_typedef_AStructType<AType,AType::AStructType> ));
- BOOST_MPL_ASSERT(( tti::has_type_check_typedef_AnIntTypeReference<AType,int &> ));
- BOOST_MPL_ASSERT(( tti::has_template_ATPMemberTemplate<AType> ));
- BOOST_MPL_ASSERT(( tti::has_template_check_AMemberTemplate<AType> ));
- BOOST_MPL_ASSERT(( tti::has_template_check_AnotherMemberTemplate<AType> ));
- BOOST_MPL_ASSERT(( tti::has_template_check_CLMemberTemplate<AType> ));
- BOOST_MPL_ASSERT(( tti::has_member_VoidFunction<void (AType::*)()> ));
- BOOST_MPL_ASSERT(( tti::has_member_aMember<bool AnotherType::*> ));
- BOOST_MPL_ASSERT(( tti::has_member_aFunction<AType (AnotherType::*)(int)> ));
- BOOST_MPL_ASSERT(( tti::mf_has_member_function<tti::has_member_aFunction,boost::mpl::identity<AnotherType>,boost::mpl::identity<AType>,boost::mpl::identity<int> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_member_function<tti::has_member_sFunction,boost::mpl::identity<AnotherType>,tti::member_type_AnIntType<AType>,boost::mpl::identity<int>,boost::mpl::identity<long>,boost::mpl::identity<double> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_member_data<tti::has_member_aMember,boost::mpl::identity<AnotherType>,boost::mpl::identity<bool> > ));
- BOOST_MPL_ASSERT(( tti::has_static_member_SIntFunction<AType,int (long,double)> ));
- BOOST_MPL_ASSERT(( tti::has_static_member_TIntFunction<AnotherType,AType (long,double)> ));
- BOOST_MPL_ASSERT(( tti::has_static_member_DSMember<AType,short> ));
- BOOST_MPL_ASSERT(( tti::mf_has_static_data<tti::has_static_member_DSMember,boost::mpl::identity<AType>,boost::mpl::identity<short> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_static_function<tti::has_static_member_TSFunction,boost::mpl::identity<AnotherType>,tti::member_type_AStructType<AType>,tti::member_type_AnIntType<AType>,boost::mpl::identity<double> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_type_check_typedef<tti::has_type_check_typedef_someOtherType,boost::mpl::identity<AnotherType>,tti::member_type_AnIntType<AType> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_type<tti::has_type_AnIntType,boost::mpl::identity<AType> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_type<tti::has_type_AnIntegerType,tti::member_type_BType<AType> > ));
- BOOST_MPL_ASSERT(( tti::mf_has_type
- <
- tti::has_type_AnotherIntegerType,
- tti::mf_member_type
- <
- tti::member_type_CType,
- tti::mf_member_type
- <
- tti::member_type_BType,
- boost::mpl::identity<AType>
- >
- >
- >
- ));
+ BOOST_TEST((tti::has_type_check_typedef_AnIntType<AType,int>::value));
+ BOOST_TEST((tti::NameStruct<AType,AType::AStructType>::value));
+ BOOST_TEST((tti::has_type_check_typedef_AnIntTypeReference<AType,int &>::value));
+ BOOST_TEST((tti::has_type_check_typedef_BType<AType,AType::BType>::value));
+ BOOST_TEST((tti::TheInteger<AType::BType,int>::value));
+ BOOST_TEST((tti::has_type_check_typedef_CType<AType::BType,AType::BType::CType>::value));
+ BOOST_TEST((tti::has_type_check_typedef_AnotherIntegerType<AType::BType::CType,int>::value));
+ BOOST_TEST((tti::SomethingElse<AnotherType,AType::AnIntType>::value));
+ BOOST_TEST((!tti::has_type_check_typedef_NoOtherType<AnotherType,double>::value));
   
-// tti::has_type_check_typedef_NothingType<AnotherType,int> ctnt;
-
- return 0;
+ return boost::report_errors();
 
   }

Modified: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.hpp (original)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedef.hpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,4 +4,14 @@
 #include "TestStructs.hpp"
 #include <boost/tti/TTIntrospection.hpp>
 
+TTI_HAS_TYPE_CHECK_TYPEDEF(AnIntType)
+TTI_TRAIT_HAS_TYPE_CHECK_TYPEDEF(NameStruct,AStructType)
+TTI_HAS_TYPE_CHECK_TYPEDEF(AnIntTypeReference)
+TTI_HAS_TYPE_CHECK_TYPEDEF(BType)
+TTI_TRAIT_HAS_TYPE_CHECK_TYPEDEF(TheInteger,AnIntegerType)
+TTI_HAS_TYPE_CHECK_TYPEDEF(CType)
+TTI_HAS_TYPE_CHECK_TYPEDEF(AnotherIntegerType)
+TTI_TRAIT_HAS_TYPE_CHECK_TYPEDEF(SomethingElse,someOtherType)
+TTI_HAS_TYPE_CHECK_TYPEDEF(NoOtherType)
+
 #endif // TEST_HAS_TYPE_CHECK_TYPEDEF_HPP

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefCompile.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefCompile.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,25 @@
+#include "TestHasTypeCheckTypedef.hpp"
+#include <boost/mpl/assert.hpp>
+
+int main()
+ {
+
+ // You can always instantiate without compiler errors
+
+ tti::TheInteger<AType::BType,short> aVar;
+ tti::has_type_check_typedef_NoOtherType<AnotherType,double> aVar2;
+
+ // Compile time asserts
+
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_AnIntType<AType,int>));
+ BOOST_MPL_ASSERT((tti::NameStruct<AType,AType::AStructType>));
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_AnIntTypeReference<AType,int &>));
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_BType<AType,AType::BType>));
+ BOOST_MPL_ASSERT((tti::TheInteger<AType::BType,int>));
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_CType<AType::BType,AType::BType::CType>));
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_AnotherIntegerType<AType::BType::CType,int>));
+ BOOST_MPL_ASSERT((tti::SomethingElse<AnotherType,AType::AnIntType>));
+
+ return 0;
+
+ }

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,13 @@
+#include "TestHasTypeCheckTypedef.hpp"
+#include <boost/mpl/assert.hpp>
+
+int main()
+ {
+
+ // NoOtherType does not exist at all
+
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_NoOtherType<AType,int>));
+
+ return 0;
+
+ }

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail2.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail2.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,13 @@
+#include "TestHasTypeCheckTypedef.hpp"
+#include <boost/mpl/assert.hpp>
+
+int main()
+ {
+
+ // Wrong enclosing type
+
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_BType<AnotherType,short>));
+
+ return 0;
+
+ }

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail3.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail3.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,12 @@
+#include "TestHasTypeCheckTypedef.hpp"
+
+int main()
+ {
+
+ // Enclosing type does not exist
+
+ tti::TheInteger<AType::EType,double> aVar;
+
+ return 0;
+
+ }

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail4.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail4.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,12 @@
+#include "TestHasTypeCheckTypedef.hpp"
+
+int main()
+ {
+
+ // Typedef type does not exist ( BType is a nested type )
+
+ tti::has_type_check_typedef_BType<AType,BType> aVar;
+
+ return 0;
+
+ }

Added: sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail5.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeCheckTypedefFail5.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,13 @@
+#include "TestHasTypeCheckTypedef.hpp"
+#include <boost/mpl/assert.hpp>
+
+int main()
+ {
+
+ // Wrong typedef type
+
+ BOOST_MPL_ASSERT((tti::has_type_check_typedef_AnotherIntegerType<AType::BType::CType,long>));
+
+ return 0;
+
+ }

Modified: sandbox/tti/libs/tti/test/TestHasTypeCompile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasTypeCompile.cpp (original)
+++ sandbox/tti/libs/tti/test/TestHasTypeCompile.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,7 +4,21 @@
 int main()
   {
   
- BOOST_MPL_ASSERT((boost::mpl::true_));
+ // You can always instantiate without compiler errors
+
+ tti::has_type_AnIntType<AnotherType> aVar1;
+ tti::has_type_NoOtherType<AType> aVar2;
+
+ // Compile time asserts
+
+ BOOST_MPL_ASSERT((tti::has_type_AnIntType<AType>));
+ BOOST_MPL_ASSERT((tti::has_type_AnIntTypeReference<AType>));
+ BOOST_MPL_ASSERT((tti::NameStruct<AType>));
+ BOOST_MPL_ASSERT((tti::has_type_BType<AType>));
+ BOOST_MPL_ASSERT((tti::TheInteger<AType::BType>));
+ BOOST_MPL_ASSERT((tti::has_type_CType<AType::BType>));
+ BOOST_MPL_ASSERT((tti::has_type_AnotherIntegerType<AType::BType::CType>));
+ BOOST_MPL_ASSERT((tti::SomethingElse<AnotherType>));
   
   return 0;
 

Modified: sandbox/tti/libs/tti/test/TestHasTypeFail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasTypeFail.cpp (original)
+++ sandbox/tti/libs/tti/test/TestHasTypeFail.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,7 +4,9 @@
 int main()
   {
   
- BOOST_MPL_ASSERT((boost::mpl::false_));
+ // NoOtherType does not exist at all
+
+ BOOST_MPL_ASSERT((tti::has_type_NoOtherType<AnotherType>));
   
   return 0;
 

Modified: sandbox/tti/libs/tti/test/TestHasTypeFail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestHasTypeFail2.cpp (original)
+++ sandbox/tti/libs/tti/test/TestHasTypeFail2.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,7 +4,9 @@
 int main()
   {
   
- BOOST_MPL_ASSERT((boost::mpl::false_));
+ // Wrong enclosing type
+
+ BOOST_MPL_ASSERT((tti::has_type_BType<AnotherType>));
   
   return 0;
 

Added: sandbox/tti/libs/tti/test/TestHasTypeFail3.cpp
==============================================================================
--- (empty file)
+++ sandbox/tti/libs/tti/test/TestHasTypeFail3.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -0,0 +1,12 @@
+#include "TestHasType.hpp"
+
+int main()
+ {
+
+ // Enclosing type does not exist
+
+ tti::TheInteger<AType::EType> aVar;
+
+ return 0;
+
+ }

Modified: sandbox/tti/libs/tti/test/TestMemberType.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestMemberType.cpp (original)
+++ sandbox/tti/libs/tti/test/TestMemberType.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -1,9 +1,19 @@
 #include "TestMemberType.hpp"
 #include <boost/detail/lightweight_test.hpp>
+#include <boost/type_traits/is_same.hpp>
 
 int main()
   {
   
+ BOOST_TEST((boost::is_same<tti::member_type_AnIntType<AType>::type,AType::AnIntType>::value));
+ BOOST_TEST((boost::is_same<tti::NameStruct<AType>::type,AType::AStructType>::value));
+ BOOST_TEST((boost::is_same<tti::member_type_AnIntTypeReference<AType>::type,AType::AnIntTypeReference>::value));
+ BOOST_TEST((boost::is_same<tti::member_type_BType<AType>::type,AType::BType>::value));
+ BOOST_TEST((boost::is_same<tti::TheInteger<AType::BType>::type,AType::BType::AnIntegerType>::value));
+ BOOST_TEST((boost::is_same<tti::member_type_CType<AType::BType>::type,AType::BType::CType>::value));
+ BOOST_TEST((boost::is_same<tti::member_type_AnotherIntegerType<AType::BType::CType>::type,AType::BType::CType::AnotherIntegerType>::value));
+ BOOST_TEST((boost::is_same<tti::SomethingElse<AnotherType>::type,AnotherType::someOtherType>::value));
+
   return boost::report_errors();
 
   }

Modified: sandbox/tti/libs/tti/test/TestMemberType.hpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestMemberType.hpp (original)
+++ sandbox/tti/libs/tti/test/TestMemberType.hpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,4 +4,14 @@
 #include "TestStructs.hpp"
 #include <boost/tti/TTIntrospection.hpp>
 
+TTI_MEMBER_TYPE(AnIntType)
+TTI_TRAIT_MEMBER_TYPE(NameStruct,AStructType)
+TTI_MEMBER_TYPE(AnIntTypeReference)
+TTI_MEMBER_TYPE(BType)
+TTI_TRAIT_MEMBER_TYPE(TheInteger,AnIntegerType)
+TTI_MEMBER_TYPE(CType)
+TTI_MEMBER_TYPE(AnotherIntegerType)
+TTI_TRAIT_MEMBER_TYPE(SomethingElse,someOtherType)
+TTI_MEMBER_TYPE(NoOtherType)
+
 #endif // TEST_MEMBER_TYPE_HPP

Modified: sandbox/tti/libs/tti/test/TestMemberTypeCompile.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestMemberTypeCompile.cpp (original)
+++ sandbox/tti/libs/tti/test/TestMemberTypeCompile.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
@@ -4,7 +4,14 @@
 int main()
   {
   
- BOOST_MPL_ASSERT((boost::mpl::true_));
+ BOOST_MPL_ASSERT((boost::is_same<tti::member_type_AnIntType<AType>::type,AType::AnIntType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::NameStruct<AType>::type,AType::AStructType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::member_type_AnIntTypeReference<AType>::type,AType::AnIntTypeReference>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::member_type_BType<AType>::type,AType::BType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::TheInteger<AType::BType>::type,AType::BType::AnIntegerType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::member_type_CType<AType::BType>::type,AType::BType::CType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::member_type_AnotherIntegerType<AType::BType::CType>::type,AType::BType::CType::AnotherIntegerType>));
+ BOOST_MPL_ASSERT((boost::is_same<tti::SomethingElse<AnotherType>::type,AnotherType::someOtherType>));
   
   return 0;
 

Deleted: sandbox/tti/libs/tti/test/TestMemberTypeFail.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestMemberTypeFail.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
+++ (empty file)
@@ -1,11 +0,0 @@
-#include "TestMemberType.hpp"
-#include <boost/mpl/assert.hpp>
-
-int main()
- {
-
- BOOST_MPL_ASSERT((boost::mpl::false_));
-
- return 0;
-
- }

Deleted: sandbox/tti/libs/tti/test/TestMemberTypeFail2.cpp
==============================================================================
--- sandbox/tti/libs/tti/test/TestMemberTypeFail2.cpp 2010-12-14 21:12:51 EST (Tue, 14 Dec 2010)
+++ (empty file)
@@ -1,11 +0,0 @@
-#include "TestMemberType.hpp"
-#include <boost/mpl/assert.hpp>
-
-int main()
- {
-
- BOOST_MPL_ASSERT((boost::mpl::false_));
-
- 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