Re: [Boost-bugs] [Boost C++ Libraries] #11817: 'sync_queue_is_closed' was not declared in boost/thread/executors/thread_executor.hpp

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11817: 'sync_queue_is_closed' was not declared in boost/thread/executors/thread_executor.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-24 05:48:27


#11817: 'sync_queue_is_closed' was not declared in
boost/thread/executors/thread_executor.hpp
---------------------------------------------+----------------------
  Reporter: Xiaoshuang LU <luxiaoshuang@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+----------------------

Old description:

> boost-1.59.0/include/boost/thread/executors/thread_executor.hpp: In
> member function 'void boost::executors::thread_executor::submit(void
> (*)())':
> boost-1.59.0/include/boost/thread/executors/thread_executor.hpp:122:68:
> error: 'sync_queue_is_closed' was not declared in this scope
> if (closed(lk)) BOOST_THROW_EXCEPTION( sync_queue_is_closed() );
> ^
> boost-1.59.0/include/boost/thread/executors/thread_executor.hpp: In
> member function 'void
> boost::executors::thread_executor::submit(Closure&&)':
> boost-1.59.0/include/boost/thread/executors/thread_executor.hpp:132:68:
> error: there are no arguments to 'sync_queue_is_closed' that depend on a
> template parameter, so a declaration of 'sync_queue_is_closed' must be
> available [-fpermissive]
> if (closed(lk)) BOOST_THROW_EXCEPTION( sync_queue_is_closed() );

New description:

 {{{
 boost-1.59.0/include/boost/thread/executors/thread_executor.hpp: In member
 function 'void boost::executors::thread_executor::submit(void (*)())':
 boost-1.59.0/include/boost/thread/executors/thread_executor.hpp:122:68:
 error: 'sync_queue_is_closed' was not declared in this scope
        if (closed(lk)) BOOST_THROW_EXCEPTION( sync_queue_is_closed() );
                                                                     ^
 boost-1.59.0/include/boost/thread/executors/thread_executor.hpp: In member
 function 'void boost::executors::thread_executor::submit(Closure&&)':
 boost-1.59.0/include/boost/thread/executors/thread_executor.hpp:132:68:
 error: there are no arguments to 'sync_queue_is_closed' that depend on a
 template parameter, so a declaration of 'sync_queue_is_closed' must be
 available [-fpermissive]
        if (closed(lk)) BOOST_THROW_EXCEPTION( sync_queue_is_closed() );
 }}}

--
Comment (by viboes):
 Hi,

 there is a missing


 {{{
 #include <boost/thread/concurrent_queues/queue_op_status.hpp>
 }}}
-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11817#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