scid icon indicating copy to clipboard operation
scid copied to clipboard

DMD 2.064, constructors now gotta be decorated

Open soltanmm opened this issue 11 years ago • 0 comments

Problem: doesn't compile in DMD 2.064 Why: a safe function is calling a constructor that isn't marked 'safe' Where: scid/internal/regionallocator.d:(364|394) Quickfix:

diff --git a/scid/internal/regionallocator.d b/scid/internal/regionallocator.d
index 97488cd..7dcbc02 100644
--- a/scid/internal/regionallocator.d
+++ b/scid/internal/regionallocator.d
@@ -103,7 +103,7 @@ $(D RegionAllocatorStack).  This exception is not thrown on out of memory.
 An $(D OutOfMemoryError) is thrown instead.
 */
 class RegionAllocatorException : Exception {
-    this(string msg, string file, int line) {
+    this(string msg, string file, int line) @safe {
         super(msg, file, line);
     }
 }

soltanmm avatar Dec 04 '13 12:12 soltanmm