Ticket #4999: fix4999.patch

File fix4999.patch, 564 bytes (added by Justin SB <justin@…>, 11 years ago)

Patch that should work with C++03 and C++0x

  • libs/signals/src/named_slot_map.cpp

     
    102102      i->first.disconnect();
    103103      i = next;
    104104    }
    105     groups.erase(group);
     105    groups.erase((const_group_iterator) group);
    106106  }
    107107}
    108108
     
    125125    }
    126126
    127127    // Clear out empty groups
    128     if (empty(g)) groups.erase(g++);
     128    if (empty(g)) groups.erase((const_group_iterator) g++);
    129129    else ++g;
    130130  }
    131131}