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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs