[Boost-bugs] [Boost C++ Libraries] #5722: Compilation error when boost/signals.hpp is included before asio.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #5722: Compilation error when boost/signals.hpp is included before asio.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-07-20 06:32:54


#5722: Compilation error when boost/signals.hpp is included before asio.hpp
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 On the [http://lists.boost.org/boost-users/2011/07/69466.php mailinglist]
 it has been discovered, that including {{{boost/signals.hpp}}} before
 {{{boost/asio.hpp}}} causes a compile error in
 {{{asio/detail/impl/signal_set_service.ipp:74}}} saying ''"boost::signal":
 use of class template requires template argument list''.

 The following testcase has been used to confirm this under MSVC10:
 {{{
 #!c++
 #include <boost/signals.hpp>
 #include <boost/asio.hpp>

 int main(int argc, char **argv)
 {
     return 0;
 }
 }}}

 [http://lists.boost.org/boost-users/2011/07/69475.php Igor R] provided the
 following patch for
 {{{boost\asio\detail\impl\signal_set_service.ipp:71}}}:
 {{{
 #!diff
 - signal(signal_number, asio_signal_handler);
 + ::signal(signal_number, asio_signal_handler);
 }}}

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