[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
https://bugs.llvm.org/show_bug.cgi?id=32133
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
(http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/n4618.pdf):
There will be 3 versions of make_optional, 2 of which are currently
unimplemented by libc++:
Implemented:
template <class T> constexpr optional<decay_t<T>> make_optional(T&& v);
Unimplemented:
template <class T, class...Args> constexpr optional<T> make_optional(Args&&...
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