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

            Bug ID: 23131
           Summary: std::function constructor unable to take
                    std::allocator<void>
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

#include <functional>
#include <memory>

int main()
{
    // Error on this line
    //
    std::function<void()> test_fn(std::allocator_arg, std::allocator<void>(),
        []()
        {
        });


    // This line works. When changed to std::allocator<int>
    //
    std::function<void()> test_fn(std::allocator_arg, std::allocator<int>(),
        []()
        {
        });

    return 0;
}

-- 
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

Reply via email to