Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/type_traits/test/is_object_test.cpp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 964 bytes
Line 
1
2//  (C) Copyright John Maddock 2000.
3//  Use, modification and distribution are subject to the
4//  Boost Software License, Version 1.0. (See accompanying file
5//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7#include "test.hpp"
8#include "check_integral_constant.hpp"
9#ifdef TEST_STD
10#  include <type_traits>
11#else
12#  include <boost/type_traits/is_object.hpp>
13#endif
14
15TT_TEST_BEGIN(is_object)
16
17BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<int>::value, true);
18BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<UDT>::value, true);
19BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<int&>::value, false);
20BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<void>::value, false);
21BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<foo4_t>::value, false);
22BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<test_abc1>::value, true);
23// this one is only partly correct:
24BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_object<incomplete_type>::value, true);
25
26
27TT_TEST_END
28
29
30
31
32
33
34
35
Note: See TracBrowser for help on using the repository browser.