Boost logo

Boost-Commit :

From: chochlik_at_[hidden]
Date: 2008-08-17 05:19:29


Author: matus.chochlik
Date: 2008-08-17 05:19:28 EDT (Sun, 17 Aug 2008)
New Revision: 48182
URL: http://svn.boost.org/trac/boost/changeset/48182

Log:
[mirror 0.2.x]
- minor bug fix in the test suite
Text files modified:
   sandbox/mirror/libs/mirror/test/types_ct_05.cpp | 27 ++++++++++++++++++++-------
   1 files changed, 20 insertions(+), 7 deletions(-)

Modified: sandbox/mirror/libs/mirror/test/types_ct_05.cpp
==============================================================================
--- sandbox/mirror/libs/mirror/test/types_ct_05.cpp (original)
+++ sandbox/mirror/libs/mirror/test/types_ct_05.cpp 2008-08-17 05:19:28 EDT (Sun, 17 Aug 2008)
@@ -12,6 +12,7 @@
 
 #include <boost/type_traits/is_same.hpp>
 #include <boost/mpl/assert.hpp>
+#include <boost/mpl/or.hpp>
 #include <boost/typeof/typeof.hpp>
 //
 #include <boost/mirror/meta_namespace.hpp>
@@ -39,13 +40,25 @@
                 BOOST_MIRRORED_TYPEOF(L'w')::reflected_type,
                 wchar_t
> ));
- BOOST_MPL_ASSERT(( is_same<
- BOOST_MIRRORED_TYPEOF("a+b")::reflected_type,
- const char [4]
- > ));
- BOOST_MPL_ASSERT(( is_same<
- BOOST_MIRRORED_TYPEOF(L"v+w")::reflected_type,
- const wchar_t [4]
+ BOOST_MPL_ASSERT(( mpl::or_<
+ is_same<
+ BOOST_MIRRORED_TYPEOF("a+b")::reflected_type,
+ const char [4]
+ >,
+ is_same<
+ BOOST_MIRRORED_TYPEOF("a+b")::reflected_type,
+ char [4]
+ >
+ > ));
+ BOOST_MPL_ASSERT(( mpl::or_<
+ is_same<
+ BOOST_MIRRORED_TYPEOF(L"v+w")::reflected_type,
+ const wchar_t [4]
+ >,
+ is_same<
+ BOOST_MIRRORED_TYPEOF(L"v+w")::reflected_type,
+ wchar_t [4]
+ >
> ));
         BOOST_MPL_ASSERT(( is_same<
                 BOOST_MIRRORED_TYPEOF(1+2)::reflected_type,


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