https://bugs.llvm.org/show_bug.cgi?id=47903
Marshall Clow (home) <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Marshall Clow (home) <[email protected]> ---
Sorry, not a bug.
Your predicate:
const auto cmp = [](const std::string &s1, const std::string &s2) {
bool isLess = s1 < s2;
isLess = !isLess;
return isLess;
};
does not impose a strict weak ordering on the data.
In particular, it returns true when comparing a string to itself.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs