diff options
| author | Mike Wey | 2012-02-22 22:51:59 +0100 |
|---|---|---|
| committer | Mike Wey | 2012-02-22 22:51:59 +0100 |
| commit | 949259ad614b16c5611a7f960576cd0bc51b98b9 (patch) | |
| tree | 6c7198823c2ac6ff44c6e3e935eccc089c1ffcd4 /dmagick/Image.d | |
| parent | c575c1af3d6d6549fce69514eaa6de5392e5f9bf (diff) | |
dmd 2.058 fixes template properties.
dmd bug 620.
Diffstat (limited to 'dmagick/Image.d')
| -rw-r--r-- | dmagick/Image.d | 20 |
1 files changed, 1 insertions, 19 deletions
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 |
