Mercurial > projects > dwt-mac
comparison dwt/dwthelper/Runnable.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 380af2bdd8e5 |
children | 30a762abda2a |
comparison
equal
deleted
inserted
replaced
6:b903c16b6f48 | 7:e831403a80a9 |
---|---|
13 | 13 |
14 } | 14 } |
15 | 15 |
16 class _DgRunnableT(Dg,T...) : Runnable { | 16 class _DgRunnableT(Dg,T...) : Runnable { |
17 | 17 |
18 alias ParameterTupleOf!(Dg) DgArgs; | 18 alias ParameterTupleOf!cast(Dg) DgArgs; |
19 static assert( is(DgArgs == Tuple!(T)), | 19 static assert( is(DgArgs == Tuple!cast(T)), |
20 "Delegate args not correct" ); | 20 "Delegate args not correct" ); |
21 | 21 |
22 Dg dg; | 22 Dg dg; |
23 T t; | 23 T t; |
24 | 24 |