Stop passing UDT's through ellipsis - it messes up strictly conforming compilers (EDG and Metrowerks).

Tighten up the tests for function and member [function] types.


[SVN r29431]
This commit is contained in:
John Maddock committed 2005-06-04 16:01:17 +00:00
1 parent 0d1dd10357
commit 24f89286a7
7 files changed
+885 -868

No files matched your search

@@ -26,6 +26,8 @@
namespace boost {
namespace type_traits {
// Note it is acceptible to use ellipsis here, since the argument will
// always be a pointer type of some sort (JM 2005/06/04):
no_type BOOST_TT_DECL is_function_ptr_tester(...);
#if !defined(BOOST_TT_PREPROCESSING_MODE)
File diff suppressed because it is too large. Load diff
@@ -61,7 +61,7 @@ struct is_mem_fun_pointer_select<false>
{
template <typename T> struct result_
{
static T& make_t;
static T* make_t;
typedef result_<T> self_type;
BOOST_STATIC_CONSTANT(
@@ -92,7 +92,7 @@ struct is_member_function_pointer_impl<T&> : public false_type{};
template <typename T>
struct is_member_function_pointer_impl
{
static T& m_t;
static T* m_t;
BOOST_STATIC_CONSTANT(
bool, value =
(1 == sizeof(type_traits::is_mem_fun_pointer_tester(m_t))) );
@@ -53,7 +53,7 @@ BOOST_TT_AUX_BOOL_TRAIT_PARTIAL_SPEC1_2(typename T,typename U,is_member_pointer,
namespace detail {
template <typename R, typename T>
::boost::type_traits::yes_type BOOST_TT_DECL is_member_pointer_tester(R T::*);
::boost::type_traits::yes_type BOOST_TT_DECL is_member_pointer_tester(R T::**);
::boost::type_traits::no_type BOOST_TT_DECL is_member_pointer_tester(...);
template <bool>
@@ -67,7 +67,7 @@ struct is_member_pointer_select<false>
{
template <typename T> struct result_
{
static T& make_t();
static T* make_t();
BOOST_STATIC_CONSTANT(
bool, value =
(::boost::type_traits::ice_or<