Boost logo

Boost Users :

From: Renato Golin (renato_at_[hidden])
Date: 2008-01-31 08:01:06


Aaron Windsor wrote:
> Hi Renato,
>
> The sequence of statements:
>
> Edge e;
> e = graph[pred];
> e.count++;
>
> copies the Edge structure from graph[pred] to e by value, then makes a
> modification to the copy in e, which is then thrown away when e goes
> out of scope. Instead, try:
>
> graph[pred].count++;

Oh my, that obviously worked! Thanks!

It's the kind of silly things that you need someone else to show you... ;)

Thank you!
--renato


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