https://issues.dlang.org/show_bug.cgi?id=15924

--- Comment #3 from ag0ae...@gmail.com ---
(In reply to keepitsimplesirius from comment #2)
> Thanks for explanation. What about making formattedWrite to take argument by
> reference instead of value?

That would make your code work, but it would break other reasonable code that's
probably already out there. Like this:
----
string buffer;
formattedWrite(appender(&buffer), "foo");
----

`auto ref` may be an option.

--

Reply via email to