[LLVMbugs] [Bug 22922] New: Allocator support for std::function does not know how to rebind
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 16 10:31:26 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=22922
Bug ID: 22922
Summary: Allocator support for std::function does not know how
to rebind
Product: libc++
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: tkoeppe at google.com
CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
Classification: Unclassified
The HEAD version of libc++'s function does not rebind allocators correctly when
using an allocator-extended constructor such as:
std::function<void()> f(std::allocator_arg, alloc,
[](){std::cout << "works\n";});
It will try to use "_Alloc::template rebind" rather than
"std::allocator_traits<_Alloc>::rebind".
--
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/20150316/e9819cbb/attachment.html>
More information about the llvm-bugs
mailing list