ndslice, using a slice in place of T[] in template parameters

Ilya Yaroshenko via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 10 14:23:18 PST 2016


On Sunday, 10 January 2016 at 22:00:20 UTC, Jay Norwood wrote:
> I cut this median template from Jack Stouffer's article and was 
> attempting to use it in  a parallel function.  As shown, it 
> builds and execute correctly, but it failed to compile if I 
> attempting to use
> medians[i] = median(vec,slb[task]);
>
> [...]

Could you please provide full code and error (git gists)? -- Ilya


More information about the Digitalmars-d-learn mailing list