Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13561: boost::detail::nullary_function causes stack overflow when copied
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-06-07 02:13:27
#13561: boost::detail::nullary_function causes stack overflow when copied
-------------------------+-------------------------------------------------
Reporter: yhirsch@⦠| Owner: Anthony Williams
Type: Bugs | Status: new
Milestone: To Be | Component: thread
Determined |
Version: Boost | Severity: Showstopper
1.67.0 | Keywords:
Resolution: | stack,overflow,thread,future,nullary,function
-------------------------+-------------------------------------------------
Comment (by jeff):
Fix a typo in the second code block: it should be enable_if_c instead of
enable_if.
also this_type is nullary_function<void()> or nullary_function<R()>
(depending on the specialization).
{{{
using this_type = nullary_function<void()>;
template<typename F, typename = typename
boost::enable_if_c<!boost::is_same<typename decay<F>::type,
this_type>::value>::type>
nullary_function(BOOST_THREAD_RV_REF(F) f):
impl(new impl_type<typename
decay<F>::type>(thread_detail::decay_copy(boost::forward<F>(f))))
{}
}}}
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13561#comment:2> 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 : 2018-06-07 02:19:22 UTC