[Boost-bugs] [Boost C++ Libraries] #10577: ‘num_synchronizations’ declared in scope

Subject: [Boost-bugs] [Boost C++ Libraries] #10577: ‘num_synchronizations’ declared in scope
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-02 02:01:48


#10577: ‘num_synchronizations’ declared in scope
-------------------------------------------------+-------------------------
 Reporter: M. Harper Langston | Type: Bugs
  <harperlangston@…> | Milestone: To Be
   Status: new | Determined
Component: None | Version: Boost
 Severity: Problem | 1.54.0
                                                 | Keywords:
-------------------------------------------------+-------------------------
 In 1_54_0/boost/graph/distributed/detail/queue.ipp there is the following:

 template<BOOST_DISTRIBUTED_QUEUE_PARMS>
 bool
 BOOST_DISTRIBUTED_QUEUE_TYPE::do_synchronize() const
 {
 #ifdef PBGL_ACCOUNTING
   ++num_synchronizations;
 #endif

 ....

 }

 While editing a PBGL example to use Eager Dijkstra over Delta-Stepping,
 the following error was produced during compilation:

 In file included from
 /boost_1_54_0/boost/graph/distributed/queue.hpp:273:0,
                  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:
 /boost_1_54_0/boost/graph/distributed/detail/queue.ipp: In member function
 â€˜virtual bool boost::graph::distributed::distributed_queue<ProcessGroup,
 OwnerMap, Buffer, UnaryPredicate>::do_synchronize() const’:
 /boost_1_54_0/boost/graph/distributed/detail/queue.ipp:143:5: error:
 â€˜num_synchronizations’ was not declared in this scope
    ++num_synchronizations;

 I couldn't locate num_synchronizations anywhere. I could undefine
 PBGL_ACCOUNTING or just comment out the num_sync increment field.

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10577>
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:17 UTC