forked from boostorg/type_traits
suppress "qualification applied to reference" warning for MSVC
[SVN r7884]
This commit is contained in:
@ -281,6 +281,11 @@ public:
|
||||
&& (1 == sizeof(detail::is_pointer_helper(t)))};
|
||||
};
|
||||
|
||||
# ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4181)
|
||||
# endif // BOOST_MSVC
|
||||
|
||||
//* is a type T a reference type - is_reference<T>
|
||||
template <typename T> struct is_reference
|
||||
{
|
||||
@ -294,6 +299,10 @@ template <> struct is_reference<void>
|
||||
enum{ value = false };
|
||||
};
|
||||
|
||||
# ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
# endif // BOOST_MSVC
|
||||
|
||||
//*? is a type T a union type - is_union<T>
|
||||
template <typename T> struct is_union
|
||||
{ enum{ value = BOOST_IS_UNION(T) }; };
|
||||
|
Reference in New Issue
Block a user