From 54c78121c2338a84e3516a64439a98e2a5b5cfe3 Mon Sep 17 00:00:00 2001 From: Lorenzo Caminiti Date: Sat, 18 Feb 2012 19:29:35 +0000 Subject: [PATCH] Updated ScopeExit "world" tests making person a struct instead of a class. Added a code comment to Utility/IdentityType tmp_assert test. [SVN r77071] --- identity_type/test/tmp_assert.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/identity_type/test/tmp_assert.cpp b/identity_type/test/tmp_assert.cpp index 17755cb..f482999 100644 --- a/identity_type/test/tmp_assert.cpp +++ b/identity_type/test/tmp_assert.cpp @@ -19,7 +19,7 @@ template struct abstract { static const bool value = b; - virtual void f(T const& x) = 0; + virtual void f(T const& x) = 0; // Pure virtual function. }; TMP_ASSERT( @@ -38,13 +38,15 @@ TMP_ASSERT( /* use `BOOST_IDENTITY_TYPE` in macro definition instead of invocation */ \ BOOST_STATIC_ASSERT(BOOST_IDENTITY_TYPE(parenthesized_metafunction)::value) +// Specify only extra parenthesis `((...))`. TMP_ASSERT_PAREN(( boost::is_const const> )); +// Specify both the extra parenthesis `((...))` and `BOOST_IDENTITY_TYPE` macro. TMP_ASSERT( BOOST_IDENTITY_TYPE((boost::is_const const>)) ); //] //[tmp_assert_alternative_always -TMP_ASSERT_PAREN(( boost::is_const )); // Always extra `()`. -TMP_ASSERT( boost::is_const ); // No extra `()` and no macro. +TMP_ASSERT_PAREN(( boost::is_const )); // Always extra `((...))`. +TMP_ASSERT( boost::is_const ); // No extra `((...))` and no macro. //] int main() { return 0; }