Undone name change

[SVN r15995]
This commit is contained in:
John Maddock
2002-10-27 11:49:52 +00:00
parent a4f0ca7ff0
commit 214c319cbc
10 changed files with 32 additions and 9 deletions

View File

@ -10,7 +10,7 @@
#ifndef BOOST_TT_HAS_TRIVIAL_ASSIGN_HPP_INCLUDED
#define BOOST_TT_HAS_TRIVIAL_ASSIGN_HPP_INCLUDED
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/type_traits/is_const.hpp"
#include "boost/type_traits/is_volatile.hpp"
#include "boost/type_traits/detail/ice_and.hpp"

View File

@ -10,7 +10,7 @@
#ifndef BOOST_TT_HAS_TRIVIAL_CONSTRUCTOR_HPP_INCLUDED
#define BOOST_TT_HAS_TRIVIAL_CONSTRUCTOR_HPP_INCLUDED
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/type_traits/detail/ice_or.hpp"
#include "boost/type_traits/config.hpp"

View File

@ -11,7 +11,7 @@
#define BOOST_TT_HAS_TRIVIAL_COPY_HPP_INCLUDED
#include "boost/type_traits/is_volatile.hpp"
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/type_traits/detail/ice_and.hpp"
#include "boost/type_traits/detail/ice_or.hpp"
#include "boost/type_traits/detail/ice_not.hpp"

View File

@ -10,7 +10,7 @@
#ifndef BOOST_TT_HAS_TRIVIAL_DESTRUCTOR_HPP_INCLUDED
#define BOOST_TT_HAS_TRIVIAL_DESTRUCTOR_HPP_INCLUDED
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/type_traits/detail/ice_or.hpp"
#include "boost/type_traits/config.hpp"

View File

@ -27,7 +27,7 @@
#include "boost/type_traits/is_compound.hpp"
#include "boost/type_traits/is_empty.hpp"
#include "boost/type_traits/is_object.hpp"
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/type_traits/is_scalar.hpp"
#include "boost/type_traits/is_stateless.hpp"

View File

@ -13,7 +13,7 @@
#include "boost/preprocessor/tuple/to_list.hpp"
#include "boost/preprocessor/cat.hpp"
#include "boost/type_traits/alignment_of.hpp"
#include "boost/type_traits/is_pod.hpp"
#include "boost/type_traits/is_POD.hpp"
#include "boost/static_assert.hpp"
#include "boost/config.hpp"

View File

@ -8,7 +8,7 @@
#include "check_integral_constant.hpp"
#include TYPE_TRAITS(is_pod)
TT_TEST_BEGIN(is_pod)
TT_TEST_BEGIN(is_POD)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<bool>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_POD<bool const>::value, true);

View File

@ -8,6 +8,13 @@
#include "check_integral_constant.hpp"
#include TYPE_TRAITS(is_polymorphic)
#include <exception>
#include <stdexcept>
#if defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64)
#include <windows.h> // more things to test
#endif
TT_TEST_BEGIN(is_polymorphic)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<int>::value, false);
@ -35,11 +42,27 @@ BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<VB>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<VD>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<test_abc1>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<test_abc2>::value, true);
#ifndef BOOST_NO_STD_LOCALE
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::iostream>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::ios_base>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::basic_streambuf<char> >::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::basic_ios<char> >::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::basic_istream<char> >::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::basic_streambuf<char> >::value, true);
#endif
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::exception>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::bad_alloc>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::runtime_error>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::out_of_range>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<std::range_error>::value, true);
#if defined(_WINDOWS) || defined(_WIN32) || defined(_WIN64)
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<IUnknown>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<ITypeInfo>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<ITypeComp>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<ICreateTypeInfo>::value, true);
BOOST_CHECK_INTEGRAL_CONSTANT(::tt::is_polymorphic<IDispatch>::value, true);
#endif
TT_TEST_END

View File

@ -17,7 +17,7 @@
#include TYPE_TRAITS(has_trivial_destructor)
#include TYPE_TRAITS(is_base_and_derived)
#include TYPE_TRAITS(is_object)
#include TYPE_TRAITS(is_pod)
#include TYPE_TRAITS(is_POD)
#include TYPE_TRAITS(is_scalar)
#include TYPE_COMPARE(is_same)
#include TYPE_COMPARE(is_convertible)

View File

@ -8,7 +8,7 @@
#include "check_integral_constant.hpp"
#include TYPE_TRAITS(alignment_of)
#include TYPE_TRAITS(type_with_alignment)
#include TYPE_TRAITS(is_pod)
#include TYPE_TRAITS(is_POD)
TT_TEST_BEGIN(type_with_alignment)