Re: [Boost-bugs] [Boost C++ Libraries] #9333: ex_scoped_thread compile fails on msvc-12.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9333: ex_scoped_thread compile fails on msvc-12.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-08 21:52:32


#9333: ex_scoped_thread compile fails on msvc-12.0
-------------------------------+----------------------
  Reporter: viboes | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by sergey.cheban@…):

 The following code in the scoped_thread.hpp fails because struct dummy is
 not public:

 #if ! defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
     template <class F, class ...Args, typename = typename
 disable_if<is_same<typename decay<F>::type, thread>, dummy* >::type>
     explicit scoped_thread(BOOST_THREAD_FWD_REF(F) f,
 BOOST_THREAD_FWD_REF(Args)... args) :
       t_(boost::forward<F>(f), boost::forward<Args>(args)...) {}
 #else

 To resolve the problem, it is enough to replace "dummy*" with "void*".

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9333#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 : 2017-02-16 18:50:14 UTC