overloading a function taking a void[][]

Johannes Pfau nospam at example.com
Thu Aug 9 01:20:45 PDT 2012


Am Wed, 08 Aug 2012 21:55:21 +0200
schrieb Timon Gehr <timon.gehr at gmx.ch>:

> 
> Well, I have done similar things in the past. The general concept
> should work.
> 
> > BTW: This is a working version, but it does cause template bloat:
> > http://dpaste.dzfl.pl/d42a58aa
> >
> 
> Maybe this helps:
> http://dpaste.dzfl.pl/ed2e8e5d

I see! I didn't have the cast(void[][]) in there. Usually a function
defined with (void[][] data...) can take an arbitrary number of
arguments of any type. But when used as above, it looses that feature
and an explicit cast is necessary.

http://dpaste.dzfl.pl/8bb247ff

Not sure if I like this, I'll probably just have a separate function
digestRange.


More information about the Digitalmars-d-learn mailing list