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).