Fix std::set::erase incompatibility
Merge pull request #77 from asmaloney/fix_compatibility

Fix std::set::erase incompatibility