diff options
Diffstat (limited to 'dmagick')
| -rw-r--r-- | dmagick/Color.d | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dmagick/Color.d b/dmagick/Color.d index c9ea1ee..cb17cf0 100644 --- a/dmagick/Color.d +++ b/dmagick/Color.d @@ -133,6 +133,15 @@ class Color assert(color.toString() == "#0000000000000000FFFFFFFF"); } + /* + * Needed when comparing colors with dmd 2.058. + */ + Object opCast(T)() + if ( is(T == Object) ) + { + return this; + } + /** * Support casting between different colors. * You can also use std.conv.to |
