Boost logo

Boost Users :

From: Marc Sturm (sturm_at_[hidden])
Date: 2006-03-07 07:46:48


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_at_[hidden]
##################################################

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net