Howard could tell us but he's in Copenhagen and may or may not be reading this.

CodeWarrior Pro 6 doesn't get this error but it does get a different one.

I'm using boost_1_21_2.

allocator_test.cpp and policy_test.cpp compile and run without errors.
function_test_fail1.cpp and function_test_fail2.cpp both fail to compile.

When compiling function_test.cpp I get the error:

Error   : ambiguous access to overloaded function 'boost::function0<void, boost::empty_function_policy, std::allocator<boost::function_base>>::function0<void>(void (*)())' 'boost::function0<void, boost::empty_function_policy, std::allocator<boost::function_base>>::function0<void (*)()>(void (*const &)())' (instantiating: 'boost::function<void, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable, boost::detail::unusable>::function<void (*)()>(void (*)())') function.hpp line 347   function(BOOST_MSVC_INCLUDE(const) Functor f) : base_type(f) {}     Chris


----------
From:   John Maddock
Reply To:       boost@yahoogroups.com
Sent:   Thursday, May 3, 2001 7:08 AM
To:     INTERNET:boost@yahoogroups.com
Subject:        [boost] Problem indicating a template in "function_traits.hpp"


>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.

Does 5.3 support member templates?  It looks like it does not, but
config.hpp says that yes it does.  Thoughts?


- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/

To unsubscribe, send email to: <mailto:boost-unsubscribe@yahoogroups.com>
 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/