diff options
Diffstat (limited to 'dmagick/ImageView.d')
| -rw-r--r-- | dmagick/ImageView.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/ImageView.d b/dmagick/ImageView.d index 709c81f..79b39c4 100644 --- a/dmagick/ImageView.d +++ b/dmagick/ImageView.d @@ -360,9 +360,9 @@ struct Pixels /** * Support using foreach on a row. */ - int opApply(int delegate(ref Color) dg) + int opApply(T : Color)(int delegate(ref T) dg) { - Color color = new Color(); + T color = new T(); foreach ( ref PixelPacket pixel; pixels ) { |
