X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.cpp;h=13e235f25152912a5f86466b129cd2a9bf5999c7;hp=6f7b1f807c9d719d3829959db91370860a62fabe;hb=497e54c026f87ef020477bfe7c0249802373c630;hpb=5126e0aab38f902d6c54c517c9986ff0d0539afd diff --git a/source/core/getopt.cpp b/source/core/getopt.cpp index 6f7b1f8..13e235f 100644 --- a/source/core/getopt.cpp +++ b/source/core/getopt.cpp @@ -32,7 +32,7 @@ GetOpt::OptionImpl &GetOpt::add_option(char s, const string &l, const Store &t, if((s!=0 && (*i)->get_short()==s) || (*i)->get_long()==l) { delete *i; - opts.erase(i++); + i = opts.erase(i); } else ++i;