[LLVMbugs] [Bug 17819] New: packaged_task cannot be built from an lvalue of function type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Nov 5 06:58:30 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=17819
Bug ID: 17819
Summary: packaged_task cannot be built from an lvalue of
function type
Product: libc++
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: hhinnant at apple.com
Reporter: kariya_mitsuru at hotmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The following code cannot be compiled with clang and libc++ r193963:
#include <future>
void f() {}
int main()
{
std::packaged_task<void()> task(f);
}
According to C++ standards(ISO/IEC 14882-2011) ยง30.9.6.1 p2, it seems that this
code should be compiled successfully.
--
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/20131105/cf73ed1b/attachment.html>
More information about the llvm-bugs
mailing list