forked from boostorg/type_traits
Fix inspection report issues.
[SVN r67728]
This commit is contained in:
@ -1,3 +1,11 @@
|
||||
[/
|
||||
Copyright 2008 Howard Hinnant
|
||||
Copyright 2008 Beman Dawes
|
||||
Copyright 2010 John Maddock
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt).
|
||||
]
|
||||
|
||||
[/===================================================================]
|
||||
[section:common_type common_type]
|
||||
|
@ -1,3 +1,9 @@
|
||||
[/
|
||||
Copyright 2010 John Maddock.
|
||||
Distributed under the Boost Software License, Version 1.0.
|
||||
(See accompanying file LICENSE_1_0.txt or copy at
|
||||
http://www.boost.org/LICENSE_1_0.txt).
|
||||
]
|
||||
|
||||
[/===================================================================]
|
||||
[section:conditional conditional]
|
||||
|
@ -166,7 +166,7 @@ struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)>
|
||||
|
||||
template<typename Function>
|
||||
struct function_traits :
|
||||
public boost::detail::function_traits_helper<typename boost::add_pointer<Function>::type>
|
||||
public boost::detail::function_traits_helper<typename boost::add_pointer<Function>::type>
|
||||
{
|
||||
};
|
||||
|
||||
|
@ -59,16 +59,16 @@ template <class T>
|
||||
struct is_const_rvalue_filter
|
||||
{
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1400)
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<typename boost::remove_bounds<T>::type*>::is_const);
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<typename boost::remove_bounds<T>::type*>::is_const);
|
||||
#else
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<T*>::is_const);
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<T*>::is_const);
|
||||
#endif
|
||||
};
|
||||
#ifndef BOOST_NO_RVALUE_REFERENCES
|
||||
template <class T>
|
||||
struct is_const_rvalue_filter<T&&>
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(bool, value = false);
|
||||
BOOST_STATIC_CONSTANT(bool, value = false);
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
@ -46,9 +46,9 @@ template <class T>
|
||||
struct is_volatile_rval_filter
|
||||
{
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, < 1400)
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<typename boost::remove_bounds<T>::type*>::is_volatile);
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<typename boost::remove_bounds<T>::type*>::is_volatile);
|
||||
#else
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<T*>::is_volatile);
|
||||
BOOST_STATIC_CONSTANT(bool, value = ::boost::detail::cv_traits_imp<T*>::is_volatile);
|
||||
#endif
|
||||
};
|
||||
#ifndef BOOST_NO_RVALUE_REFERENCES
|
||||
@ -59,7 +59,7 @@ struct is_volatile_rval_filter
|
||||
template <class T>
|
||||
struct is_volatile_rval_filter<T&&>
|
||||
{
|
||||
BOOST_STATIC_CONSTANT(bool, value = false);
|
||||
BOOST_STATIC_CONSTANT(bool, value = false);
|
||||
};
|
||||
#endif
|
||||
}
|
||||
|
@ -32,7 +32,7 @@ namespace detail{
|
||||
template <class T>
|
||||
struct rvalue_ref_filter_rem_cv
|
||||
{
|
||||
typedef typename boost::detail::cv_traits_imp<T*>::unqualified_type type;
|
||||
typedef typename boost::detail::cv_traits_imp<T*>::unqualified_type type;
|
||||
};
|
||||
|
||||
#ifndef BOOST_NO_RVALUE_REFERENCES
|
||||
@ -43,7 +43,7 @@ struct rvalue_ref_filter_rem_cv
|
||||
template <class T>
|
||||
struct rvalue_ref_filter_rem_cv<T&&>
|
||||
{
|
||||
typedef T&& type;
|
||||
typedef T&& type;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -32,13 +32,13 @@ namespace detail{
|
||||
template <class T>
|
||||
struct remove_rvalue_ref
|
||||
{
|
||||
typedef T type;
|
||||
typedef T type;
|
||||
};
|
||||
#ifndef BOOST_NO_RVALUE_REFERENCES
|
||||
template <class T>
|
||||
struct remove_rvalue_ref<T&&>
|
||||
{
|
||||
typedef T type;
|
||||
typedef T type;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
@ -24,5 +24,4 @@ struct C2 {};
|
||||
|
||||
|
||||
typedef tt::common_type<C1, C2>::type AC;
|
||||
|
||||
|
||||
|
||||
|
@ -28,14 +28,14 @@ public:
|
||||
class non_virtual_base
|
||||
{
|
||||
public:
|
||||
non_virtual_base();
|
||||
non_virtual_base();
|
||||
};
|
||||
class non_virtual_derived : public non_virtual_base
|
||||
{
|
||||
public:
|
||||
non_virtual_derived();
|
||||
virtual int Y();
|
||||
virtual int X();
|
||||
non_virtual_derived();
|
||||
virtual int Y();
|
||||
virtual int X();
|
||||
};
|
||||
|
||||
TT_TEST_BEGIN(is_virtual_base_of)
|
||||
|
Reference in New Issue
Block a user