Boost C++ Libraries: Ticket #11817: 'sync_queue_is_closed' was not declared in boost/thread/executors/thread_executor.hpp https://svn.boost.org/trac10/ticket/11817 <pre class="wiki">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&amp;&amp;)': 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() ); </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11817 Trac 1.4.3 viboes Tue, 24 Nov 2015 05:39:45 GMT owner, status changed https://svn.boost.org/trac10/ticket/11817#comment:1 https://svn.boost.org/trac10/ticket/11817#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Xiaoshuang LU <luxiaoshuang@…> Tue, 24 Nov 2015 05:42:59 GMT <link>https://svn.boost.org/trac10/ticket/11817#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11817#comment:2</guid> <description> <p> Hi Vibose, </p> <blockquote> <p> Would you mind to assigning this ticket to me? I will take care of it. </p> </blockquote> <blockquote> <p> Thanks. </p> </blockquote> <p> Xiaoshuang LU </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 24 Nov 2015 05:48:27 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/11817#comment:3 https://svn.boost.org/trac10/ticket/11817#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/11817?action=diff&amp;version=3">diff</a>) </li> </ul> <p> Hi, </p> <p> there is a missing </p> <pre class="wiki">#include &lt;boost/thread/concurrent_queues/queue_op_status.hpp&gt; </pre> Ticket viboes Tue, 24 Nov 2015 05:50:51 GMT version, milestone changed https://svn.boost.org/trac10/ticket/11817#comment:4 https://svn.boost.org/trac10/ticket/11817#comment:4 <ul> <li><strong>version</strong> <span class="trac-field-old">Boost 1.60.0</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.60.0</span> </li> </ul> Ticket Xiaoshuang LU <luxiaoshuang@…> Tue, 24 Nov 2015 06:56:47 GMT <link>https://svn.boost.org/trac10/ticket/11817#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11817#comment:5</guid> <description> <p> Yes, you are correct. </p> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/11817#comment:3" title="Comment 3">viboes</a>: </p> <blockquote class="citation"> <p> Hi, </p> <p> there is a missing </p> <pre class="wiki">#include &lt;boost/thread/concurrent_queues/queue_op_status.hpp&gt; </pre></blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 08 Dec 2015 21:34:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11817#comment:6 https://svn.boost.org/trac10/ticket/11817#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket tamino@… Fri, 31 Mar 2017 20:21:03 GMT <link>https://svn.boost.org/trac10/ticket/11817#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11817#comment:7</guid> <description> <p> Hello, this bug does still does occur when the order of includes is not correct: </p> <pre class="wiki">#define BOOST_THREAD_VERSION 4 #define BOOST_THREAD_PROVIDES_EXECUTORS #include &lt;iostream&gt; #include &lt;thread&gt; #include &lt;list&gt; #include &lt;chrono&gt; #include &lt;boost/thread.hpp&gt; #include &lt;boost/thread/future.hpp&gt; #include &lt;boost/thread/executors/thread_executor.hpp&gt; // include this first which includes queue_op_status.hpp #include &lt;boost/thread/executors/inline_executor.hpp&gt; #include &lt;boost/thread/executors/basic_thread_pool.hpp&gt; #include &lt;boost/thread/executors/loop_executor.hpp&gt; </pre><p> When I include thread_executor.hpp later I still get this error. I am using Boost 1.63.0 customly build with gcc -std=c++14. </p> <p> So this version fails: </p> <pre class="wiki">#define BOOST_THREAD_VERSION 4 #define BOOST_THREAD_PROVIDES_EXECUTORS #include &lt;iostream&gt; #include &lt;thread&gt; #include &lt;list&gt; #include &lt;chrono&gt; #include &lt;boost/thread.hpp&gt; #include &lt;boost/thread/future.hpp&gt; #include &lt;boost/thread/executors/inline_executor.hpp&gt; #include &lt;boost/thread/executors/basic_thread_pool.hpp&gt; #include &lt;boost/thread/executors/loop_executor.hpp&gt; #include &lt;boost/thread/executors/thread_executor.hpp&gt; // include this first which includes queue_op_status.hpp </pre><p> with these errors: </p> <pre class="wiki">/home/tamino/thesis/futures/build/boost/include/boost/thread/executors/inline_executor.hpp: In member function ‘void boost::executors::inline_executor::submit(void (*)())’: /home/tamino/thesis/futures/build/boost/include/boost/thread/executors/inline_executor.hpp:122:70: error: ‘sync_queue_is_closed’ was not declared in this scope if (closed(lk)) BOOST_THROW_EXCEPTION( sync_queue_is_closed() ); ^ /home/tamino/thesis/futures/build/boost/include/boost/thread/executors/inline_executor.hpp: In member function ‘void boost::executors::inline_executor::submit(Closure&amp;&amp;)’: /home/tamino/thesis/futures/build/boost/include/boost/thread/executors/inline_executor.hpp:140:70: 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() ); </pre> </description> <category>Ticket</category> </item> </channel> </rss>