QuackatronHQ / Gigarepo

Using std::string::compare over equality operators CXX-C2017
Anti-pattern
Minor
1 occurrence in this check
do not use 'compare' to test equality of strings; use the string equality operator instead
26                    std::string employee_name) {
27  // use auto& to avoid copy of employee_details
28  for (const auto employee_detail : employee_details)
29    if (employee_name.compare(employee_detail.name))30      return true;
31
32  return false;