I've made the apparently wrong assumption that node.as<unsigned long long>() would throw a YAML::BadConversion exception if the number is negative.
In reality a value like:
will be converted to 18446744073709535766.
In #209, it is argued that bool Nodes should not have an implicit conversion to int (which I support since they are semantically different types), hence, I assume that yaml not throwing in the above case is not intended?
I've made the apparently wrong assumption that
node.as<unsigned long long>()would throw aYAML::BadConversionexception if the number is negative.In reality a value like:
will be converted to 18446744073709535766.
In #209, it is argued that bool Nodes should not have an implicit conversion to int (which I support since they are semantically different types), hence, I assume that yaml not throwing in the above case is not intended?