Changes between Initial Version and Version 1 of Ticket #11801, comment 1


Ignore:
Timestamp:
Nov 19, 2015, 8:12:52 AM (7 years ago)
Author:
Joaquín M López Muñoz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11801, comment 1

    initial v1  
    1111
    1212{{{
     1383:    node_info.layer = 0;
    131488:    node_info.layer = CALCULATION_IN_PROGRESS;
    141594:    node_info.layer = UNINITIALIZED;
     
    1718}}}
    1819
    19 88 can be seemingly dispensed with since you don't really have circular references; 94 and 100 aren't problematic as you return immediately after modification; actually, it is 103 that poses the problem, because after changing `node_info.layer` you continue using the container in line 91.
     2083, 94 and 100 aren't problematic as you return immediately after modification; 88 can be seemingly dispensed with since you don't really have circular references; actually, it is 103 that poses the problem, because after changing `node_info.layer` you continue using the container in line 91.
    2021
    2122The solution is to defer element modification to the very end of the user-provided lambda: