Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-05-04 17:45:05


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.

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk