Issue in C++ code not detected by Sonar Developer edition

Sonar does not detect this issue which caused our software to crash when ran.

function_.erase(std::find_if(function_.cbegin(), function_.cend(), [&uuid] (Function const& f) { return std::get<0>(f) == uuid; }));

Hey there.

Is there a rule you expected to raise an issue here, or are you suggesting a new rule? Can you describe the more general case (and, preferably, fill out the template post you were presented when you started a new post in this category)?