From: Douglas Gregor (gregod_at_[hidden])
Date: 2001-05-05 17:30:19
On Friday 04 May 2001 18:45, you wrote:
> on 5/2/01 8:41 PM, Daryle Walker at darylew_at_[hidden] wrote:
> > I was trying out the May 1st version of the function trial library at
> > <http://groups.yahoo.com/group/boost/files/Callback/function-05-01.zip>,
> > and I got an error from <boost/type_traits/function_traits.hpp>. It was
> > on line 142, highlighting the word "template." I forgot what the exact
> > error was; I think it was a syntax error. This is on Metrowerks
> > CodeWarrior Pro 5.3 for the Mac OS, so it's probably a compiler
> > deficiency.
> I worked around the problem by commenting out the "template" qualifiers in
> the "function_base.hpp", "function.hpp", and "function_traits.hpp"
> (separate copy) headers. After that, "allocator_test.cpp" and
> "policy_test.cpp" worked perfectly. The "function_test_fail1.cpp" and
> "function_test_fail2.cpp" files choked at the right places at compile-time,
> the comparison and cross-assignment, respectively, with an illegal-operand
> error. Unfortunately, the "function_test.cpp" file failed. I got a few
> warnings about missing prototypes, but the main problem was that every (39)
> cross-assignment failed with an illegal-operand error. Only assignments to
> objects of the exact same function-wrapper type were accepted.
Do the numbered function classes exhibit the same behavior? If so, perhaps
BOOST_NO_DEPENDENT_BASE_LOOKUP would work.
I won't have any access to CodeWarrior (any version) for the foreseeable
future, so I'll need help with this if it is ever going to run on CodeWarrior
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk