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

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 3 13:01:16 PST 2017


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

Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |eric at efcs.ca
             Status|NEW                         |RESOLVED

--- Comment #1 from Eric Fiselier <eric at efcs.ca> ---
OK, a couple of points:

(1) You're referring to libc++'s <experimental/optional> implementation, not
<optional> which correctly implements all three overloads. You need to specify
this next time. Alternatively supplying a minimal reproducer will speak for
itself.

(2) You reference the C++ standard (n4618), however the C++ standard doesn't
specify <experimental/foo> headers. The library fundamentals TS does. 

(3) Libc++'s <experimental/optional> only implements LFTS v1, but the overloads
in question only appear in LFTS v2. Perhaps someday somebody will upgrade the
<experimental/optional> implementation but it's not priority since we have
already shipped <optional>. (Patches welcome!)

Closing this bug as a duplicate of the bug tracking optional's LFTS v2 status.

*** This bug has been marked as a duplicate of bug 31071 ***

-- 
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/6c674b87/attachment.html>


More information about the llvm-bugs mailing list