[Issue 15924] formattedWrite doesn't write to empty appender
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Fri Apr 15 15:19:31 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=15924
--- Comment #3 from ag0aep6g at 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.
--
More information about the Digitalmars-d-bugs
mailing list