[Boost-bugs] [Boost C++ Libraries] #5470: compile error in asio/detail/impl/win_iocp_io_service.ipp with cygwin-gcc

Subject: [Boost-bugs] [Boost C++ Libraries] #5470: compile error in asio/detail/impl/win_iocp_io_service.ipp with cygwin-gcc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-14 12:12:14


#5470: compile error in asio/detail/impl/win_iocp_io_service.ipp with cygwin-gcc
---------------------------------+------------------------------------------
 Reporter: kikairoya@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 With cygwin gcc-3 or gcc-4, compile error occurs in
 asio/detail/impl/win_iocp_io_service.ipp.[[BR]]

 {{{
 $ gcc-3 -v
 Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
 Configured with: /managed/gcc-
 build/final-v3-bootstrap/gcc-3.4.4-999/configure --verbose --program-
 suffix=-3 --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc
 --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --enable-
 languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-
 included-gettext --enable-version-specific-runtime-libs --without-x
 --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter
 --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm
 --disable-win32-registry --enable-sjlj-exceptions --enable-hash-
 synchronization --enable-libstdcxx-debug
 Thread model: posix
 gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

 $ gcc-3 -c -D__USE_W32_SOCKETS /usr/local/boost/boost/asio.hpp
 /usr/local/boost/boost/asio/detail/impl/win_iocp_io_service.ipp: In member
 function `void
 boost::asio::detail::win_iocp_io_service::do_add_timer_queue(boost::asio::detail::timer_queue_base&)':
 /usr/local/boost/boost/asio/detail/impl/win_iocp_io_service.ipp:461:
 error: no matching function for call to
 `boost::asio::detail::posix_thread::posix_thread(boost::asio::detail::win_iocp_io_service::timer_thread_function&,
 int)'
 /usr/local/boost/boost/asio/detail/posix_thread.hpp:38: note: candidates
 are: boost::asio::detail::posix_thread::posix_thread(const
 boost::asio::detail::posix_thread&)

 }}}

 I think the ctor of asio::detail::posix_thread should have dummy int
 parameter for interface compatibility.

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