Bug in boost/graph/detail/array_binary_tree.hpp ? [Boost 1_33_1]
Hello, We use gcc 3.4 and 4.0 to compile our project OpenMS, which is based on boost. boost/graph/detail/array_binary_tree.hpp causes the following errors: ---------------------------------------------------- ../boost/graph/detail/array_binary_tree.hpp:157: error: no matching function for call to 'get(OpenMS::IteratorOffset<__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > > >&, __gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >&)' .../boost/graph/detail/array_binary_tree.hpp:158: error: no matching function for call to 'get(OpenMS::IteratorOffset<__gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > > >&, __gnu_cxx::__normal_iterator<double*, std::vector<double, std::allocator<double> > >&)' ---------------------------------------------------- This can be fixed by replacing the original lines: 157: edata[ boost::get(id, tmp) ] = i; 158: edata[ boost::get(id, value()) ] = x.i; by: 157: edata[ get(id, tmp) ] = i; 158: edata[ get(id, value()) ] = x.i; Is this a bug, or are we doing something wrong? Cheers, Marc -- ################################################## Marc Sturm University of Tuebingen Simulation of Biological Systems Sand 14, Room C323 D-72076 Tuebingen phone: +49 7071 29 70462 email: sturm@informatik.uni-tuebingen.de ##################################################
On Mar 7, 2006, at 7:46 AM, Marc Sturm wrote:
We use gcc 3.4 and 4.0 to compile our project OpenMS, which is based on boost. boost/graph/detail/array_binary_tree.hpp causes the following errors: [snip] This can be fixed by replacing the original lines: 157: edata[ boost::get(id, tmp) ] = i; 158: edata[ boost::get(id, value()) ] = x.i; by: 157: edata[ get(id, tmp) ] = i; 158: edata[ get(id, value()) ] = x.i;
Is this a bug, or are we doing something wrong?
Yes, this is a bug. Your changes, plus the addition of "using boost::get;" at the beginning of the function, should fix the problem. The change will go into Boost CVS in a few minutes. Doug
participants (2)
-
Douglas Gregor
-
Marc Sturm