fix various QoI issues
[SVN r17262]
This commit is contained in:
1 parent
3f1849142b
commit
3a86e88eb3
12 files changed
+231
-70
No files matched your search
@@ -15,6 +15,7 @@
|
||||
// without express or implied warranty.
|
||||
|
||||
#include "boost/mpl/aux_/has_xxx.hpp"
|
||||
#include "boost/mpl/aux_/config/workaround.hpp"
|
||||
#include "boost/static_assert.hpp"
|
||||
|
||||
BOOST_MPL_HAS_XXX_TRAIT_DEF(xxx_type)
|
||||
@@ -31,12 +32,15 @@ struct a9 { typedef void (xxx_type)(); };
|
||||
|
||||
int main()
|
||||
{
|
||||
#if !BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<int&>::value);
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<int*>::value);
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<int[]>::value);
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<int (*)()>::value);
|
||||
#endif
|
||||
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<int>::value);
|
||||
|
||||
#if !defined(BOOST_MSVC) || BOOST_MSVC > 1300
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<a1>::value);
|
||||
#endif
|
||||
|
||||
BOOST_STATIC_ASSERT(!has_xxx_type<a2>::value);
|
||||
BOOST_STATIC_ASSERT(has_xxx_type<a3>::value);
|
||||
BOOST_STATIC_ASSERT(has_xxx_type<a4>::value);
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// boost mpl/test/is_sequence.cpp source file
|
||||
// See http://www.boost.org for updates, documentation, and revision history.
|
||||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// Copyright (c) 2002-03
|
||||
// Aleksey Gurtovoy
|
||||
//
|
||||
// Permission to use, copy, modify, distribute and sell this software
|
||||
// and its documentation for any purpose is hereby granted without fee,
|
||||
// provided that the above copyright notice appears in all copies and
|
||||
// that both the copyright notice and this permission notice appear in
|
||||
// supporting documentation. No representations are made about the
|
||||
// suitability of this software for any purpose. It is provided "as is"
|
||||
// without express or implied warranty.
|
||||
|
||||
#include "boost/mpl/list.hpp"
|
||||
#include "boost/mpl/vector.hpp"
|
||||
#include "boost/mpl/range_c.hpp"
|
||||
#include "boost/mpl/is_sequence.hpp"
|
||||
#include "boost/static_assert.hpp"
|
||||
|
||||
using namespace boost::mpl;
|
||||
|
||||
struct UDT {};
|
||||
|
||||
int main()
|
||||
{
|
||||
BOOST_STATIC_ASSERT(!is_sequence< int >::value);
|
||||
BOOST_STATIC_ASSERT(!is_sequence< int& >::value);
|
||||
BOOST_STATIC_ASSERT(!is_sequence< UDT >::value);
|
||||
BOOST_STATIC_ASSERT(!is_sequence< UDT* >::value);
|
||||
BOOST_STATIC_ASSERT((is_sequence< range_c<int,0,0> >::value));
|
||||
BOOST_STATIC_ASSERT(is_sequence< list<> >::value);
|
||||
BOOST_STATIC_ASSERT(is_sequence< vector<> >::value);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user