Use std.string.lineSplitter with std.array.Appender!string
NonNull
non-null at use.startmail.com
Wed Aug 28 15:52:18 UTC 2019
Disambiguate how ?
```
import std.string, std.array;
auto s = appender!string;
// .......
auto a = s.lineSplitter;
```
Error: template std.string.lineSplitter cannot deduce function
from argument types !()(Appender!string), candidates are:
std.string.lineSplitter(Flag keepTerm = No.keepTerminator,
Range)(Range r) if (hasSlicing!Range && hasLength!Range &&
isSomeChar!(ElementType!Range) && !isSomeString!Range)
std.string.lineSplitter(Flag keepTerm = No.keepTerminator, C)(C[]
r) if (isSomeChar!C)
More information about the Digitalmars-d-learn
mailing list