From 22c432fb52b4dfdc9a0872e9a9ae2a0ec7e2e2b5 Mon Sep 17 00:00:00 2001 From: "Forb.Jok" Date: Thu, 8 Dec 2016 17:59:22 +0100 Subject: [PATCH] Make Node type identification properties public --- source/dyaml/node.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/dyaml/node.d b/source/dyaml/node.d index 57e102e..861339e 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -1631,6 +1631,7 @@ struct Node return (cast(nothrowType)&value_.type)(); } + public: // Determine if the value stored by the node is of specified type. // // This only works for default YAML types, not for user defined types. @@ -1639,7 +1640,6 @@ struct Node return this.type is typeid(Unqual!T); } - private: // Is the value a bool? alias isType!bool isBool; @@ -1685,6 +1685,7 @@ struct Node else {return false;} } + private: // Implementation of contains() and containsKey(). bool contains_(T, Flag!"key" key, string func)(T rhs) const @trusted {