Loader ctors no longer pure (DMD 2.054)
This commit is contained in:
parent
369c899e90
commit
e0e9082615
|
@ -115,7 +115,7 @@ struct Loader
|
||||||
*
|
*
|
||||||
* Throws: YAMLException if the file could not be opened or read.
|
* Throws: YAMLException if the file could not be opened or read.
|
||||||
*/
|
*/
|
||||||
this(string filename) pure @safe
|
this(string filename) @trusted
|
||||||
{
|
{
|
||||||
name_ = filename;
|
name_ = filename;
|
||||||
try{this(new File(filename));}
|
try{this(new File(filename));}
|
||||||
|
@ -147,7 +147,7 @@ struct Loader
|
||||||
*
|
*
|
||||||
* Throws: YAMLException if stream could not be read.
|
* Throws: YAMLException if stream could not be read.
|
||||||
*/
|
*/
|
||||||
this(Stream stream) pure @safe
|
this(Stream stream) @safe
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -121,7 +121,6 @@ package class YAMLContainer(T) if (!Node.allowed!T): YAMLObject
|
||||||
this(T value) @trusted {value_ = value;}
|
this(T value) @trusted {value_ = value;}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* YAML node.
|
* YAML node.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue