[llvm-bugs] [Bug 26285] New: __hash_value_type allows accidental implicit construction in unordered_map
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jan 24 21:44:27 PST 2016
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: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: llvm-bugs at lists.llvm.org, mclow.lists at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160125/6c152ffc/attachment.html>
More information about the llvm-bugs
mailing list