1
0
forked from boostorg/bind

g++ 2.9x fix

[SVN r22709]
This commit is contained in:
Peter Dimov
2004-04-30 13:04:51 +00:00
parent 74fae199f6
commit 53c2e449d1

View File

@@ -1093,18 +1093,6 @@ template<class A1, class A2, class A3, class A4, class A5, class A6, class A7, c
typedef list9<B1, B2, B3, B4, B5, B6, B7, B8, B9> type;
};
// g++ 2.95 specific helper; used by the data member overload
template<class T> struct add_cref
{
typedef T const & type;
};
template<> struct add_cref<void>
{
typedef void type;
};
} // namespace _bi
// visit_each
@@ -1459,6 +1447,26 @@ template<class F, class A1, class A2, class A3, class A4, class A5, class A6, cl
#if defined(__GNUC__) && (__GNUC__ == 2)
namespace _bi
{
template<class T> struct add_cref
{
typedef T const & type;
};
template<class T> struct add_cref< T & >
{
typedef T const & type;
};
template<> struct add_cref<void>
{
typedef void type;
};
} // namespace _bi
template<class R, class T, class A1>
_bi::bind_t< typename _bi::add_cref<R>::type, _mfi::dm<R, T>, typename _bi::list_av_1<A1>::type >
BOOST_BIND(R T::*f, A1 a1)