[Bug c++/58713] error: cannot bind ‘std::ostream {aka std::basic_ostream<char>}’ lvalue to ‘std::basic_ostream<char>&&’
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 14:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Daniel Krügler from comment #3)
> A possible fix might be to change the Standard ;-) Despite the smiley I
> seriously consider to make the proposal/open an issue that the "all-eating"
> signature
That was done, and implemented in libstdc++.
Maybe any remaining improvements should be left to PR c++/84920 and this one
closed? (The original report of inconsistent behaviour was just due to
forgetting -std=c++11, and the greedy rvalue overload is constrained now so the
output is similar for c++11 and c++98 anyway).
More information about the Gcc-bugs
mailing list