id summary reporter owner description type status milestone component version severity resolution keywords cc 11801 Recursive modify in multi_index sometimes does not update index correctly Valentyn Shtronda Joaquín M López Muñoz "Please use attached simplified file to reproduce the problem. I used boost 1.59 with VS2015. Reproduced in all 4 configurations (debug/release, x86/x64). I'm not sure if it's a bug or limitation of multi_index, but commenting any line in fill_test_date() fixes the problem, so seems like a bug in some specific conditions. If it's multi_index limitation, please mention this in description of modify/modify_key. The problem: multi_index container has two keys ordered_unique and ordered_non_unique. In calc_layer() I call modify() on first index and change the key of second index. During calculation of new key for second index, other recursive calls to modify() may be performed. All calls to modify() return true but in some cases second index is not correctly ordered in we see message ""WRONG SORT ORDER BY LAYER""." Bugs closed To Be Determined multi_index Boost 1.59.0 Problem invalid multi_index multi_index_container recursive modify