|
Boost Users : |
Subject: Re: [Boost-users] Problem with gcc/4.5.0-g++and boost::function
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-03-31 12:42:47
AMDG
On 03/31/2011 09:27 AM, Shah, Gaurav N wrote:
> I have legacy code in my library using boost::function. This works fine if I am using gcc/4.2.2-g++ and BOOST/1.41. But if I switch myself to using gcc/4.5.0-g++ and BOOST/1.44 I get below ERROR:
> I do not see anything wrong with code.
>
> /export/home/a_besnad/Perforce/eq-thebeast-build-linux-Beast_8.08/TheBeast/marketdata/IMDMXP/server/wombat/management.hpp:69:51: error: 'function' in namespace 'boost' does not name a type
> /export/home/a_besnad/Perforce/eq-thebeast-build-linux-Beast_8.08/TheBeast/marketdata/IMDMXP/server/wombat/management.hpp:69:58: error: ISO C++ forbids declaration of 'parameter' with no type
> /export/home/a_besnad/Perforce/eq-thebeast-build-linux-Beast_8.08/TheBeast/marketdata/IMDMXP/server/wombat/management.hpp:69:66: error: expected ',' or '...' before '<' token
> ../../../../../../marketdata/IMDMXP/server/wombat/management.cpp:126:10: error: prototype for 'void datasource::management::stop(const std::string&, const boost::function<void()>&)' does not match any in class 'datasource::management'
> /export/home/a_besnad/Perforce/eq-thebeast-build-linux-Beast_8.08/TheBeast/marketdata/IMDMXP/server/wombat/management.hpp:69:14: error: candidate is: void datasource::management::stop(const std::string&, int)
> make[6]: *** [management.lo] Error 1
> make[6]: *** Waiting for unfinished jobs....
>
>
>
> Code lines throw ERROR:
>
> 68 */
> 69 void stop(const std::string& topic, const boost::function< void (void)>& action);
> 70
>
> Thanks for help in advance.
>
Have you verified that boost/function.hpp
is #included?
In Christ,
Steven Watanabe
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