From 16b486c62333b236c2218cd2a50bce2e33525ef7 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Wed, 23 Jul 2014 00:38:51 +0200 Subject: [PATCH] FastCharSearch is now @nogc. --- source/dyaml/fastcharsearch.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dyaml/fastcharsearch.d b/source/dyaml/fastcharsearch.d index 8465a71..a63b392 100644 --- a/source/dyaml/fastcharsearch.d +++ b/source/dyaml/fastcharsearch.d @@ -35,7 +35,7 @@ template FastCharSearch(dstring chars, uint tableSize = 256) } ///Generate the search table and the canFind method. -string searchCode(dstring chars, uint tableSize)() @trusted +string searchCode(dstring chars, uint tableSize)() @safe pure nothrow { const tableSizeStr = to!string(tableSize); ubyte[tableSize] table; @@ -76,7 +76,7 @@ string searchCode(dstring chars, uint tableSize)() @trusted string code = tableSize ? tableCode() : ""; - code ~= "bool canFind(in dchar c) pure @safe nothrow\n" + code ~= "bool canFind(in dchar c) pure @safe nothrow @nogc\n" "{\n"; if(tableSize)