Opened 7 years ago

Last modified 6 years ago

#11817 closed Bugs

'sync_queue_is_closed' was not declared in boost/thread/executors/thread_executor.hpp — at Version 3

Reported by: Xiaoshuang LU <luxiaoshuang@…> Owned by: viboes
Milestone: Boost 1.60.0 Component: thread
Version: Boost 1.59.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes)

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() );

Change History (3)

comment:1 by viboes, 7 years ago

Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 by Xiaoshuang LU <luxiaoshuang@…>, 7 years ago

Hi Vibose,

Would you mind to assigning this ticket to me? I will take care of it.

Thanks.

Xiaoshuang LU

comment:3 by viboes, 7 years ago

Description: modified (diff)

Hi,

there is a missing

#include <boost/thread/concurrent_queues/queue_op_status.hpp>
Note: See TracTickets for help on using tickets.