darrengarvey / cgi

CGI and FastCGI C++ Library
http://cgi.sf.net
51 stars 32 forks source link

cgi::request contructor fails on boost 1.48 because of the removed shutdown_service #3

Closed leutloff closed 12 years ago

leutloff commented 12 years ago

Instantiation of cgi::request fails, e.g.

cgi::request req; or cgi::request req(cgi::parse_none);

error C2259: 'boost::cgi::cgi_request_service' : cannot instantiate abstract class due to following members: 'void boost::asio::io_service::service::shutdown_service(void)' : is abstract ...\boost_1_48_0\boost/asio/io_service.hpp(694) : see declaration of 'boost::asio::io_service::service::shutdown_service'

So the removal Fix library to work with newer Boost versions. is not backwards compatible with some not so old boost versions 8-(

I have no idea how to fix it so that it works for some recent boost::asio versions ...

darrengarvey commented 12 years ago

I'm afraid we'll need just add a nasty #ifdef based on the boost version. Apologies for breaking your build!

baraclese commented 12 years ago

Fyi, Boost 1.49.0 needs the shutdown_service function too and that's the current release. I just tried to get this library to work, hopefully there will be some progress in the near future, maybe I can help.

darrengarvey commented 12 years ago

Fixed after merging leutloff's changes. Thanks a lot.