http://llvm.org/bugs/show_bug.cgi?id=17147
Bug ID: 17147
Summary: __debug_less() does not support heterogeneous
comparator
Product: libc++
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Actually, the __debug_less implementation try to check if a comparator forces
"a strict weak ordering".
Unfortunately, this check is broken for heterogenous comparator, which are
supported by methods like std::lower_bound.
It tries to call the comparator with the arguments in reverse order, and so
prevent compilation of such valid code.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs