<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 17, 2018 at 8:40 AM, Louis Dionne via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><span class=""><blockquote type="cite"><div>On Aug 10, 2018, at 13:30, JF Bastien <<a href="mailto:jfbastien@apple.com" target="_blank">jfbastien@apple.com</a>> wrote:</div><br class="m_-2062149429466201366Apple-interchange-newline"><div><div style="word-wrap:break-word;line-break:after-white-space"><br><div><blockquote type="cite"><div>On Aug 10, 2018, at 8:39 AM, Keane, Erich via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="m_-2062149429466201366Apple-interchange-newline"><div><div class="m_-2062149429466201366WordSection1" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:"Times New Roman",serif"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Would a better solution be to simply have <experimental/optional> #include <optional> (perhaps with some namespace-wrapping?), and in C++17+ mode have a #warning instead of that #error?</span></div></div></div></blockquote><div><br></div><div>Seems like a better fix, yes.</div></div></div></div></blockquote><div><br></div></span><div>Just to follow up on this. It’s been said before, but the problem is that std::experimental::optional and std::optional are not the same thing. std::experimental::optional is frozen in time, but std::optional will keep evolving. Hence, we would really need to keep providing two implementations that may start diverging with time. This is explained here: <a href="http://libcxx.llvm.org/TS_deprecation.html" target="_blank">http://libcxx.llvm.org/TS_<wbr>deprecation.html</a>.</div></div><div><br></div></div></blockquote><div><br></div><div>A nit: "May start diverging with time" is too optimistic.</div><div>"Have diverged, and will continue to diverge in the future" is the correct state.</div><div><br></div><div>-- Marshall</div><div> </div></div></div></div>