diff --git a/source/dyaml/node.d b/source/dyaml/node.d index a1f0f1b..78f9fa1 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -182,14 +182,11 @@ struct Node Node.Pair[], Node[], YAMLObject) Value; // Can Value hold this type without wrapping it in a YAMLObject? - template allowed(T) - { - enum allowed = isIntegral!T || - isFloatingPoint!T || - isSomeString!T || - is(Unqual!T == bool) || - Value.allowed!T; - } + enum allowed(T) = isIntegral!T || + isFloatingPoint!T || + isSomeString!T || + is(Unqual!T == bool) || + Value.allowed!T; // Stored value. Value value_;