From f08838774e2f6d36d0bb902fcaf0b73829c2ebad Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Fri, 3 Sep 2004 16:02:24 +0000 Subject: [PATCH] post-merge bug fixes [SVN r24893] --- test/apply_wrap.cpp | 11 +++++++++++ test/has_xxx.cpp | 16 +++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/test/apply_wrap.cpp b/test/apply_wrap.cpp index 8baae42..3c26157 100644 --- a/test/apply_wrap.cpp +++ b/test/apply_wrap.cpp @@ -62,11 +62,15 @@ /**/ namespace { namespace test { + BOOST_PP_REPEAT( BOOST_MPL_LIMIT_METAFUNCTION_ARITY , APPLY_FUNC_DEF , unused ) + +struct g0 { struct apply { typedef char type; }; }; + }} #define APPLY_0_TEST(i, apply_) \ @@ -107,4 +111,11 @@ MPL_TEST_CASE() , APPLY_TEST , unused ) + +#if !defined(BOOST_MPL_CFG_NO_HAS_APPLY) + { + typedef apply_wrap0::type t; + MPL_ASSERT(( boost::is_same )); + } +#endif } diff --git a/test/has_xxx.cpp b/test/has_xxx.cpp index 45324ee..db59777 100644 --- a/test/has_xxx.cpp +++ b/test/has_xxx.cpp @@ -21,6 +21,7 @@ struct a1 {}; struct a2 { void xxx(); }; struct a3 { int xxx; }; struct a4 { static int xxx(); }; +struct a5 { template< typename T > struct xxx {}; }; struct b1 { typedef int xxx; }; struct b2 { struct xxx; }; @@ -50,6 +51,7 @@ MPL_TEST_CASE() MPL_ASSERT_NOT(( has_xxx )); MPL_ASSERT_NOT(( has_xxx )); MPL_ASSERT_NOT(( has_xxx )); + MPL_ASSERT_NOT(( has_xxx )); MPL_ASSERT_NOT(( has_xxx< enum_ > )); #endif MPL_ASSERT_NOT(( has_xxx )); @@ -58,13 +60,13 @@ MPL_TEST_CASE() MPL_ASSERT_NOT(( has_xxx< abstract > )); MPL_ASSERT_NOT(( has_xxx< noncopyable > )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); - MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); + MPL_ASSERT(( has_xxx )); #if !defined(HAS_XXX_ASSERT) # define HAS_XXX_ASSERT(x) MPL_ASSERT(x)