Re: [Boost-bugs] [Boost C++ Libraries] #10174: call_stack not working when building asio as shared module on windows

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10174: call_stack not working when building asio as shared module on windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-02 00:46:27


#10174: call_stack not working when building asio as shared module on windows
-------------------------------+------------------------------
  Reporter: wberrier@… | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: windows dispatch
-------------------------------+------------------------------

Comment (by wberrier@…):

 I ended up going the route that the previous commenter went, and am
 attaching the patch to do so.

 It's kind of a windows-only workaround, but it does also compile on linux,
 as long as I don't "export" the static variable, because gcc complains
 that it's already "inlined".

 This also fixes the case of io_service dispatch. But, there's a strand
 dispatch case that is also addressed because strand dispatch calls into
 the io_service (can_dispatch() I believe).

 It's nice that we don't have to worry about this on linux, but here's a
 nice workaround on windows when using dynamic link libraries.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10174#comment:3>
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:19 UTC