[LLVMbugs] [Bug 23131] std::function constructor unable to take std::allocator<void>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 6 09:04:18 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23131

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Marshall Clow (home) <mclow.lists at gmail.com> ---
This is not a libc++ bug.

The allocator argument for the constructor to std::function must satisfy the
allocator requirements (see func.wrap.func.con/1). 

std::allocator<void>, despite its name, does not satisfy those requirements.
[ Aside: It cannot satisfy those requirements; because it would have to be able
to construct and destroy objects of type `void` ]

-- 
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/20150406/20d8ab97/attachment.html>


More information about the llvm-bugs mailing list