From bb54e6db4105938af5aefd3013b177b919703c00 Mon Sep 17 00:00:00 2001 From: Stefan Hepp Date: Thu, 19 Jan 2012 17:51:42 +0100 Subject: [PATCH] Fix for compile error with dmd 2.057 --- dyaml/constructor.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dyaml/constructor.d b/dyaml/constructor.d index fbaaa03..d766924 100644 --- a/dyaml/constructor.d +++ b/dyaml/constructor.d @@ -524,9 +524,9 @@ SysTime constructTimestamp(ref Node node) { string value = node.as!string; - immutable YMDRegexp = regex("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)"); - immutable HMSRegexp = regex("^[Tt \t]+([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(\\.[0-9]*)?"); - immutable TZRegexp = regex("^[ \t]*Z|([-+][0-9][0-9]?)(:[0-9][0-9])?"); + auto YMDRegexp = regex("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)"); + auto HMSRegexp = regex("^[Tt \t]+([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(\\.[0-9]*)?"); + auto TZRegexp = regex("^[ \t]*Z|([-+][0-9][0-9]?)(:[0-9][0-9])?"); try {