This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/80451] return implicit type conversion to std::experimental::optional does not compile


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80451

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
LWG 2451 is a specification change, which isn't reflected in the
cppreference.com docs. Using std::move(b) is a workaround. I'm still trying to
determine why the workaround is needed.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]