forked from boostorg/type_traits
Added boost-wide <limits> woraround
[SVN r9688]
This commit is contained in:
@ -140,15 +140,15 @@ struct is_function
|
||||
private:
|
||||
#if !defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION)
|
||||
typedef typename detail::is_function_chooser< ::boost::is_reference<T>::value>::template rebind<T> binder;
|
||||
typedef typename binder::type type;
|
||||
typedef typename binder::type m_type;
|
||||
#else
|
||||
// without partial specialistaion we can't use is_reference on
|
||||
// function types, that leaves this template broken in the case that
|
||||
// T is a reference:
|
||||
typedef detail::is_function_helper<T> type;
|
||||
typedef detail::is_function_helper<T> m_type;
|
||||
#endif
|
||||
public:
|
||||
BOOST_STATIC_CONSTANT(bool, value = type::value);
|
||||
BOOST_STATIC_CONSTANT(bool, value = m_type::value);
|
||||
};
|
||||
|
||||
} // boost
|
||||
|
@ -8,7 +8,11 @@
|
||||
#include "boost/type_traits/type_traits_test.hpp"
|
||||
|
||||
template <class T>
|
||||
#ifndef __BORLANDC__
|
||||
void is_function_test(T& foo)
|
||||
#else
|
||||
void is_function_test(const T& foo)
|
||||
#endif
|
||||
{
|
||||
value_test(true, ::boost::is_function<T>::value);
|
||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
|
Reference in New Issue
Block a user