Subject: [Boost-bugs] [Boost C++ Libraries] #4638: Compile error using boost::asio::has_service()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-08 13:31:40
#4638: Compile error using boost::asio::has_service()
-------------------------------------------------------+--------------------
Reporter: Peter Sturm <peter.sturm@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.44.0 | Severity: Showstopper
Keywords: has_service init_key |
-------------------------------------------------------+--------------------
Using the template function '''boost::asio::has_service()''' leads to
compiler error "const ... discards qualifiers" with gcc 4.2.1 and MSVS
2008.
'''Problem:'''
has_service() is defined as const, but calls non const members init_key()
'''Possible solution:'''
make init_key() a const member.
'''
Files affected:'''
boost/asio/detail/service_registry.hpp
boost/asio/detail/impl/service_registry.hpp
boost/asio/detail/impl/service_registry.ipp
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4638> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC