You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation for std::max_element, if there are multiple greatest elements, it returns the iterator to the first one of them. The current translation uses Rust's max_by_key, which returns the last element when there are multiple greatest elements.
This is also the case for vector's f94 and algorithm's f8 rules.
Activity
[-]Incorrect `std::max_element` translation for `std::vector`[/-][+]Incorrect `std::max_element` translation[/+]Preserve first-element semantics in max_element translations (Cpp2Rus…