https://llvm.org/bugs/show_bug.cgi?id=26285
Bug ID: 26285 Summary: __hash_value_type allows accidental implicit construction in unordered_map Product: libc++ Version: unspecified Hardware: PC OS: All Status: NEW Severity: normal Priority: P Component: All Bugs Assignee: unassignedclangb...@nondot.org Reporter: e...@efcs.ca CC: llvm-bugs@lists.llvm.org, mclow.li...@gmail.com Classification: Unclassified The C++11 __hash_value_type has a non-explicit converting constructor that accepts anything. This can lead to accidental constructions of __hash_value_type from "pair<const Key, value>". The constructor must be made explicit. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs