One way to deal with transient ranges & char[] buffers

monarch_dodra monarchdodra at gmail.com
Fri Aug 2 01:37:48 PDT 2013


On Friday, 2 August 2013 at 05:35:28 UTC, H. S. Teoh wrote:
> 	void func(S)(S input) if (isSomeString!S) {
> 		string x = to!string(input);
> 		... // use at will
> 	}

+1. I saw this used recently, and I find it very clever.


More information about the Digitalmars-d mailing list