[Boost-bugs] [Boost C++ Libraries] #4680: error asio compilation with BOOST_ASIO_DISABLE_THREADS

Subject: [Boost-bugs] [Boost C++ Libraries] #4680: error asio compilation with BOOST_ASIO_DISABLE_THREADS
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-23 13:37:31


#4680: error asio compilation with BOOST_ASIO_DISABLE_THREADS
----------------------------------------------------+-----------------------
 Reporter: Yury Podpruzhnikov <QWERTYura@…> | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
----------------------------------------------------+-----------------------
 Compiler: MSVS 2008
 I am add macros BOOST_ASIO_DISABLE_THREADS to my project

 After compilation I have error
 {{{
 XXX\boost/asio/detail/impl/win_iocp_io_service.ipp(455) : error C2660:
 'boost::asio::detail::null_thread::null_thread' : function does not take 2
 arguments
 }}}

 I don't ideal understand asio, but possible deсision is add second fictive
 parameter to null_thread constructor


 {{{
 Index: X:/avx/trunk/prj/lib/boost/inc/boost/asio/detail/null_thread.hpp
 @@ -35,7 +35,7 @@
  public:
    // Constructor.
    template <typename Function>
 - null_thread(Function)
 + null_thread(Function, unsigned int stack_size = 0)
    {
      boost::asio::detail::throw_error(
          boost::asio::error::operation_not_supported, "thread");

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4680>
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