Struct Flattening
tama
repeatedly at gmail.com
Tue Apr 21 22:58:14 PDT 2009
On Wed, 22 Apr 2009 14:50:58 +0900, tama <repeatedly at gmail.com> wrote:
> On Wed, 22 Apr 2009 13:42:27 +0900, dsimcha <dsimcha at yahoo.com> wrote:
>
>> It's basically a tuple with some special properties. Let's say I have a
>> template struct:
>>
>> struct Joint(T...) {
>> T ranges;
>> }
>>
>> It's built with:
>>
>> SomeType joint(T...)(T args) { // do stuff. }
>>
>> When one of the arguments is a Joint, I want it to flatten. For
>> example,
Sorry, I overlooked this line:'(
--
tama <repeatedly at gmail.com>
http://profile.livedoor.com/repeatedly/
メンバー募集中
http://tpf.techtalk.jp/
More information about the Digitalmars-d
mailing list