Opened 8 years ago

Closed 8 years ago

#10519 closed Bugs (invalid)

Boost coroutine needs an inline declaration for one of the template specializations to avoid linking errors.

Reported by: benkerby@… Owned by: olli
Milestone: To Be Determined Component: coroutine
Version: Boost 1.56.0 Severity: Problem
Keywords: link, inline Cc:

Description

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.

Change History (1)

comment:1 by olli, 8 years ago

Resolution: invalid
Status: newclosed

already fixed in branch develop, thx

Note: See TracTickets for help on using tickets.