2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

Possible workaround for cxx 6.2

[SVN r12270]
This commit is contained in:
Dave Abrahams
2002-01-10 19:07:18 +00:00
parent 98c9e67625
commit 7d1cbcb0c1

View File

@@ -19,8 +19,12 @@ namespace boost { namespace python { namespace objects {
template <class T>
struct forward
{
BOOST_STATIC_CONSTANT(
bool, by_value = (is_scalar<T>::value | is_reference<T>::value)
);
typedef typename mpl::select_type<
is_scalar<T>::value | is_reference<T>::value
by_value
, T
, reference_wrapper<
typename add_const<T>::type