13
0

MSVC won't allow us to erase an item that's managed by 'const_iterator'

This commit is contained in:
John Emmas 2018-12-17 09:32:19 +00:00
parent 6c8abb26c8
commit 0d55dad045

View File

@ -478,7 +478,7 @@ Automatable::automation_list_automation_state_changed (Evoral::Parameter param,
RCUWriter<ControlList> writer (_automated_controls);
boost::shared_ptr<ControlList> cl = writer.get_copy ();
ControlList::const_iterator fi = std::find (cl->begin(), cl->end(), c);
ControlList::iterator fi = std::find (cl->begin(), cl->end(), c);
if (fi != cl->end()) {
cl->erase (fi);
}