[Boost-bugs] [Boost C++ Libraries] #10519: Boost coroutine needs an inline declaration for one of the template specializations to avoid linking errors.

Subject: [Boost-bugs] [Boost C++ Libraries] #10519: Boost coroutine needs an inline declaration for one of the template specializations to avoid linking errors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-19 21:06:48


#10519: Boost coroutine needs an inline declaration for one of the template
specializations to avoid linking errors.
------------------------------+-----------------------
 Reporter: benkerby@… | Owner: olli
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: coroutine
  Version: Boost 1.56.0 | Severity: Problem
 Keywords: link, inline |
------------------------------+-----------------------
 In the file:
 coroutine/asymmetric_coroutine.hpp (line 1612)
 there is a constructor for a specialization of push_coroutine< void > that
 is neither templated nor marked as inline. This can cause linking errors
 if the constructor is called in multiple translation units.

 It should read:

 inline push_coroutine< void >::push_coroutine(coroutine_fn fn,
 attributes const& attrs)

 Note that this is only defined if BOOST_MSVC is defined (i.e. is only a
 problem when using Visual Studio.

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