Changes between Initial Version and Version 1 of Ticket #11801, comment 1
- Timestamp:
- Nov 19, 2015, 8:12:52 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #11801, comment 1
initial v1 11 11 12 12 {{{ 13 83: node_info.layer = 0; 13 14 88: node_info.layer = CALCULATION_IN_PROGRESS; 14 15 94: node_info.layer = UNINITIALIZED; … … 17 18 }}} 18 19 19 8 8 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.20 83, 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. 20 21 21 22 The solution is to defer element modification to the very end of the user-provided lambda: