Boost logo

Boost Users :

Subject: Re: [Boost-users] Asio 1.6: compile error in signal_set_service with MSVC10
From: Igor R (boost.lists_at_[hidden])
Date: 2011-07-19 10:42:32


> But I found an (unnecessary) include of
> <boost/signal.hpp>. And that was enough to cause the problem.
>
> So thank you very much for the quick solution. I totally didn't think of
> that.
>
> I now managed to build a testcase that consists of an empty main() function
> and the two includes, that causes the described error. See the code below.
>
> thanks for your hint,
> Norbert
> ---------------------
>
> #include <boost/signals.hpp>
> #include <boost/asio.hpp>
>
> int main(int argc, char **argv)
> {
>        return 0;
> }

This's a bug in asio, in boost\asio\detail\impl\signal_set_service.ipp, line 71:
- signal(signal_number, asio_signal_handler);
+ ::signal(signal_number, asio_signal_handler);


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net