COIN-OR::LEMON - Graph Library

Changes between Initial Version and Version 1 of Ticket #420


Ignore:
Timestamp:
04/26/11 16:54:37 (14 years ago)
Author:
Alpar Juttner
Comment:

From: Bernhard Kausler

Dear all,

the bug was caused by uninitialized "next" and "prev" fields in struct IterableValueMapNode (resp. struct IterableIntMapNode) in maps.h. Please find attached a patch for the lemon-main branch, that fixes the problem. (The patch is valid for lemon-1.2.1, too).

Best, Bernhard Kausler

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #420

    • Property Cc ernhard.kausler@… added
  • Ticket #420 – Description

    initial v1  
    66
    77---------- code begin ---------
     8{{{
    89#include <lemon/list_graph.h>
    910#include <lemon/maps.h>
     
    2223  return 0;
    2324}
     25}}}
     26
    2427---------- code end -----------
    2528
     29{{{
    2630gdb backtrace:
    2731#0  0x00000000004059a3 in lemon::IterableValueMap<MyGraph,
     
    4246(this=0x7fffffffdc80) at lemon-main/lemon/list_graph.h:352
    4347#5  0x0000000000400f54 in main () at inheritance-bug.cpp:15
     48}}}