Boost logo

Boost Users :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2006-03-09 11:01:15


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


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