iterator std::set::erase (iterator) is C++11
authorRobin Gareus <robin@gareus.org>
Mon, 8 May 2017 14:30:54 +0000 (16:30 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 8 May 2017 14:30:54 +0000 (16:30 +0200)
libs/ardour/selection.cc

index 6775759fc974bcae906019b34187f28e8c6caf11..1c0e89fdf035b1ffae1271b29ae1512e90750164 100644 (file)
@@ -251,7 +251,7 @@ CoreSelection::remove_stripable_by_id (PBD::ID const & id)
 
        for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ) {
                if ((*x).stripable == id) {
-                       x = _stripables.erase (x);
+                       _stripables.erase (x++);
                        /* keep going because there may be more than 1 pair of
                           stripable/automation-control in the selection.
                        */