Made the 'data' member optional in node_ref - it's only created on-demand, so we don't waste extra memory every time we do Value tmp = v;

This commit is contained in:
Jesse Beder
2011-09-09 14:26:55 -05:00
parent 9b985c5ce2
commit 7bbf712c36
4 changed files with 21 additions and 14 deletions

View File

@@ -8,6 +8,8 @@ namespace YAML
{
namespace detail
{
std::string node_data::empty_scalar;
node_data::node_data(): m_isDefined(false), m_type(ValueType::Null)
{
}