Boost C++ Libraries: Ticket #10577: ‘num_synchronizations’ declared in scope https://svn.boost.org/trac10/ticket/10577 <p> In 1_54_0/boost/graph/distributed/detail/queue.ipp there is the following: </p> <p> template&lt;BOOST_DISTRIBUTED_QUEUE_PARMS&gt; bool BOOST_DISTRIBUTED_QUEUE_TYPE::do_synchronize() const { #ifdef PBGL_ACCOUNTING </p> <blockquote> <p> ++num_synchronizations; </p> </blockquote> <p> #endif </p> <p> .... </p> <p> } </p> <p> While editing a PBGL example to use Eager Dijkstra over Delta-Stepping, the following error was produced during compilation: </p> <p> In file included from /boost_1_54_0/boost/graph/distributed/queue.hpp:273:0, </p> <blockquote> <p> from /boost_1_54_0/boost/graph/distributed/breadth_first_search.hpp:20, from /boost_1_54_0/boost/graph/breadth_first_search.hpp:404, from /boost_1_54_0/boost/graph/dijkstra_shortest_paths.hpp:21, from /parallel-bgl-0.7.0/libs/graph_parallel/test/distributed_shortest_paths_test.cpp:15: </p> </blockquote> <p> /boost_1_54_0/boost/graph/distributed/detail/queue.ipp: In member function ‘virtual bool boost::graph::distributed::distributed_queue&lt;<a class="missing wiki">ProcessGroup</a>, <a class="missing wiki">OwnerMap</a>, Buffer, <a class="missing wiki">UnaryPredicate</a>&gt;::do_synchronize() const’: /boost_1_54_0/boost/graph/distributed/detail/queue.ipp:143:5: error: ‘num_synchronizations’ was not declared in this scope </p> <blockquote> <p> ++num_synchronizations; </p> </blockquote> <p> I couldn't locate num_synchronizations anywhere. I could undefine PBGL_ACCOUNTING or just comment out the num_sync increment field. </p> <p> I don't see this as having been fixed/removed in any other boost versions (checked 1_56_0). Not a serious problem clearly unless accurate accounting is wanted. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10577 Trac 1.4.3 viboes Sun, 12 Oct 2014 13:53:53 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10577#comment:1 https://svn.boost.org/trac10/ticket/10577#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jeremiah Willcock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">graph</span> </li> </ul> Ticket