From 28918d242d290dd55ad2035abcbf863bc237b7d6 Mon Sep 17 00:00:00 2001 From: Kiith-Sa Date: Wed, 16 Oct 2013 23:15:41 +0200 Subject: [PATCH] Nothrow Node userValue, value. --- source/dyaml/node.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dyaml/node.d b/source/dyaml/node.d index c5c5c54..1e5dbea 100644 --- a/source/dyaml/node.d +++ b/source/dyaml/node.d @@ -1416,13 +1416,13 @@ struct Node } //Construct Node.Value from user defined type. - static Value userValue(T)(T value) @trusted + static Value userValue(T)(T value) @trusted nothrow { return Value(cast(YAMLObject)new YAMLContainer!T(value)); } //Construct Node.Value from a type it can store directly (after casting if needed) - static Value value(T)(T value) @trusted if(allowed!T) + static Value value(T)(T value) @safe nothrow if(allowed!T) { static if(Value.allowed!T) {