This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/80451] return implicit type conversion to std::experimental::optional does not compile
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Apr 2017 11:10:56 +0000
- Subject: [Bug libstdc++/80451] return implicit type conversion to std::experimental::optional does not compile
- Auto-submitted: auto-generated
- References: <bug-80451-4@http.gcc.gnu.org/bugzilla/>
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.