How to get a range from std.container.array for use with std.format.sformat?

cc cc at nevernet.com
Tue Jan 30 19:19:44 UTC 2018


Still doesn't work without the cast it seems..

	auto rng = str[];
	rng.sformat!"%s:%s"("some", "string");
	// Error: template std.format.sformat cannot deduce function 
from argument types !("%s:%s")(RangeT!(Array!char), string, 
string)


More information about the Digitalmars-d-learn mailing list