Nothrow Node userValue, value.

This commit is contained in:
Kiith-Sa 2013-10-16 23:15:41 +02:00
parent 7b96993497
commit 28918d242d

View file

@ -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)
{