[Lemon-user] Bug in list graph
Alpar Juttner
alpar at cs.elte.hu
Fri May 22 18:02:23 CEST 2015
This looks really bad, indeed, thank you for reporting it.
Please refer to https://lemon.cs.elte.hu/trac/lemon/ticket/598
for any follow-ups.
Best regards,
Alpár
On Thu, 2015-05-21 at 10:43 +0200, Pierre Moulon wrote:
> Hi,
>
>
> Thank you to develop and share the Lemon graph library.
>
>
> By curiosity I have ran the code analyzer from Visual Studio on the
> Lemon library.
>
>
> And it found some strange things in lemon/list_graph.hpp:
>
>
> In all the ObserverProxy implementations we can see something like:
> "
> virtual void add(const std::vector<Node>& nodes) {
> for (int i = nodes.size() - 1; i >= 0; ++i) {
> snapshot.addNode(nodes[i]);
> }
> }
> "
> The increment step of the loop must be -- and not ++ !!
>
>
> This error appears 18 times and must be fixed!
>
>
> I'm using Lemon 1.3 and I have checked on the current mercurials
> files, the error is still there in the trunk.
>
>
> Regards/Cordialement,
> Pierre M
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user
More information about the Lemon-user
mailing list