Added boost-wide <limits> woraround

[SVN r9688]
This commit is contained in:
John Maddock
2001-04-01 11:59:18 +00:00
parent 41daf6eb63
commit 38cef1f983
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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