Implement toString

This commit is contained in:
fbraem 2013-02-14 22:53:45 +01:00
parent 8fddacd451
commit c2dbb70b0b

View File

@ -58,6 +58,8 @@ public:
virtual ~Array();
/// Destructor
std::string toString() const;
};
// BSON Embedded Array
@ -70,7 +72,7 @@ struct ElementTraits<Array::Ptr>
static std::string toString(const Array::Ptr& value)
{
//TODO:
return value.isNull() ? "null" : "[]";
return value.isNull() ? "null" : value->toString();
}
};