[llvm-bugs] [Bug 32133] New: make_optional doesn't accept initializer list and parameter pack

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 3 12:40:58 PST 2017


            Bug ID: 32133
           Summary: make_optional doesn't accept initializer list and
                    parameter pack
           Product: libc++
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hocheung20 at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

According to n4618 p. 558

There will be 3 versions of make_optional, 2 of which are currently
unimplemented by libc++:

template <class T> constexpr optional<decay_t<T>> make_optional(T&& v);

template <class T, class...Args> constexpr optional<T> make_optional(Args&&...
template <class T, class U, class... Args> constexpr optional<T>
make_optional(initializer_list<U> il, Args&&... args);

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/20170303/a998321f/attachment.html>

More information about the llvm-bugs mailing list