MSVC won't allow us to erase an item that's managed by 'const_iterator'
This commit is contained in:
parent
6c8abb26c8
commit
0d55dad045
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user