merge new MPL version from 'mplbook' branch
[SVN r24874]
This commit is contained in:
1 parent
e2e70427cc
commit
1689c8ef83
1216 files changed
+89913
-36752
No files matched your search
@@ -0,0 +1,46 @@
|
||||
|
||||
// Copyright Aleksey Gurtovoy 2000-2004
|
||||
//
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
//
|
||||
// See http://www.boost.org/libs/mpl for documentation.
|
||||
|
||||
// $Source$
|
||||
// $Date$
|
||||
// $Revision$
|
||||
|
||||
#include <boost/mpl/aux_/config/msvc.hpp>
|
||||
#include <boost/mpl/aux_/config/workaround.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, <= 1200)
|
||||
|
||||
#include <boost/mpl/aux_/msvc_is_class.hpp>
|
||||
#include <boost/mpl/aux_/test.hpp>
|
||||
|
||||
template< typename T > struct A { T x[0]; };
|
||||
|
||||
MPL_TEST_CASE()
|
||||
{
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< int > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< char > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< enum_ > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< char* > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< UDT* > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< UDT& > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< incomplete* > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< incomplete& > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< int[5] > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< void (*)() > ));
|
||||
MPL_ASSERT_NOT(( aux::msvc_is_class< int (*)(int, char) > ));
|
||||
|
||||
MPL_ASSERT(( aux::msvc_is_class< UDT > ));
|
||||
MPL_ASSERT(( aux::msvc_is_class< incomplete > ));
|
||||
MPL_ASSERT(( aux::msvc_is_class< abstract > ));
|
||||
MPL_ASSERT(( aux::msvc_is_class< noncopyable > ));
|
||||
MPL_ASSERT(( aux::msvc_is_class< A<int> > ));
|
||||
MPL_ASSERT(( aux::msvc_is_class< A<incomplete> > ));
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user