Merge pull request #37 from Herringway/master

avoid use of a static constructor in parser
This commit is contained in:
Ferdinand Majerech 2015-10-10 23:28:24 +02:00
commit 77f32a16ba

View file

@ -114,11 +114,8 @@ final class Parser
{ {
private: private:
///Default tag handle shortcuts and replacements. ///Default tag handle shortcuts and replacements.
static TagDirective[] defaultTagDirectives_; static TagDirective[] defaultTagDirectives_ =
static this() [TagDirective("!", "!"), TagDirective("!!", "tag:yaml.org,2002:")];
{
defaultTagDirectives_ = [TagDirective("!", "!"), TagDirective("!!", "tag:yaml.org,2002:")];
}
///Scanner providing YAML tokens. ///Scanner providing YAML tokens.
Scanner scanner_; Scanner scanner_;