Boost logo

Boost Users :

From: Philippe Mori (philippe_mori_at_[hidden])
Date: 2005-01-07 10:26:20


The following line (starting at line 130 of boost/bind.hpp) does not
compile:

#if !( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, <= 0x3003) )

template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* * pm, int)
{
    return _mfi::dm<R, T>(*pm);
}

#if !BOOST_WORKAROUND(__IBMCPP__, BOOST_TESTED_AT(600))
// IBM/VisualAge 6.0 is not able to handle this overload.
template<class R, class T> inline _mfi::dm<R, T> unwrap(R T::* const * pm,
int)
{
    return _mfi::dm<R, T>(*pm);
}
#endif

#endif

I got the following message:
    Error : ')' expected
    bind.hpp line 132 template<class R, class T> inline _mfi::dm<R, T>
unwrap(R T::* * pm, int)
    (the second * is underlined)

and then many more errors. If a comment out the previous lines, the file
properly compile.

To have this error, I just need to include <boost/bind.hpp> file in my code.

I am using CodeWarrior 9.3 for Palm and the version as given by __MWERKS__
is 0x3004.
If I changes 0x3003 for 0x3004 (at line 130), it compile file (so the
workaround is still required).

Could one boost developper make the changes? I am using boost 1.32.0.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net