Added warning suppression for VC-9.

[SVN r41259]
This commit is contained in:
John Maddock
2007-11-20 16:57:32 +00:00
parent f250146688
commit 80e18d2937
5 changed files with 29 additions and 1 deletions

View File

@ -85,7 +85,14 @@ struct is_abstract_imp2
#ifdef __GNUC__
BOOST_STATIC_CONSTANT(unsigned, s1 = sizeof(is_abstract_imp2<T>::template check_sig<T>(0)));
#else
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(push)
#pragma warning(disable:6334)
#endif
BOOST_STATIC_CONSTANT(unsigned, s1 = sizeof(check_sig<T>(0)));
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(pop)
#endif
#endif
BOOST_STATIC_CONSTANT(bool, value =

View File

@ -129,6 +129,10 @@ struct bd_helper
template<typename B, typename D>
struct is_base_and_derived_impl2
{
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(push)
#pragma warning(disable:6334)
#endif
//
// May silently do the wrong thing with incomplete types
// unless we trap them here:
@ -148,6 +152,9 @@ struct is_base_and_derived_impl2
BOOST_STATIC_CONSTANT(bool, value =
sizeof(bd_helper<B,D>::check_sig(Host(), 0)) == sizeof(type_traits::yes_type));
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(pop)
#endif
};
#else

View File

@ -249,7 +249,7 @@ struct is_convertible_basic_impl
static From _m_from;
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4244)
#pragma warning(disable:4244 6334)
#endif
BOOST_STATIC_CONSTANT(bool, value =
sizeof( _m_check(_m_from) ) == sizeof(::boost::type_traits::yes_type)

View File

@ -62,11 +62,18 @@ struct is_function_impl
template <typename T>
struct is_function_impl
{
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(push)
#pragma warning(disable:6334)
#endif
static T* t;
BOOST_STATIC_CONSTANT(
bool, value = sizeof(::boost::type_traits::is_function_ptr_tester(t))
== sizeof(::boost::type_traits::yes_type)
);
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(pop)
#endif
};
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)

View File

@ -62,6 +62,10 @@ struct is_mem_fun_pointer_select<false>
{
template <typename T> struct result_
{
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(push)
#pragma warning(disable:6334)
#endif
static T* make_t;
typedef result_<T> self_type;
@ -69,6 +73,9 @@ struct is_mem_fun_pointer_select<false>
bool, value = (
1 == sizeof(::boost::type_traits::is_mem_fun_pointer_tester(self_type::make_t))
));
#if BOOST_WORKAROUND(BOOST_MSVC, > 1400)
#pragma warning(pop)
#endif
};
};