From 949259ad614b16c5611a7f960576cd0bc51b98b9 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Wed, 22 Feb 2012 22:51:59 +0100 Subject: dmd 2.058 fixes template properties. dmd bug 620. --- dmagick/Image.d | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'dmagick/Image.d') diff --git a/dmagick/Image.d b/dmagick/Image.d index 6b86e2f..a6758d1 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -4074,25 +4074,7 @@ class Image */ auto opDispatch(string property)() { - // Workaround for dmd bug 620. - struct Property - { - ImageRef imageRef; - - void opAssign(string value) - { - SetImageProperty(imageRef, toStringz(property), toStringz(value)); - } - - string value() - { - return to!(string)(GetImageProperty(imageRef, toStringz(property))); - } - - alias value this; - } - - return Property(imageRef); + return to!(string)(GetImageProperty(imageRef, toStringz(property))); } unittest -- cgit v1.2.3