[Bug libstdc++/86008] std::quoted(std::basic_string_view) is missing
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 4 07:54:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86008
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-05-31
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Matt Whitlock from comment #0)
> The following shim allows the code above to compile, although it is
> sub-optimal because it captures a std::basic_string_view by reference.
Have you profiled to see if that matters? A basic_string_view is twice the size
of a reference, which makes the returned _Quoted_string object larger (but then
since the iostream inserter takes it by reference, avoiding the
double-dereference might help).
More information about the Gcc-bugs
mailing list