cgi::request contructor fails on boost 1.48 because of the removed shutdown_service
leutloff opened this issue · 3 comments
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 ...
I'm afraid we'll need just add a nasty #ifdef based on the boost version. Apologies for breaking your build!
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.
Fixed after merging leutloff's changes. Thanks a lot.