From f96fc6c53bc8bd8888aeb291441f61a65b439413 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Tue, 22 Oct 2013 13:39:21 -0700 Subject: Initial setup for dealing with object properties --- src/value.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/value.cpp') diff --git a/src/value.cpp b/src/value.cpp index 5e6d9b0..ded6c4a 100644 --- a/src/value.cpp +++ b/src/value.cpp @@ -1005,6 +1005,17 @@ HashMember Value::operator[](const char *key) return HashMember(this, key); } +/** + * Custom output stream operator + * @param stream + * @param value + * @return ostream + */ +std::ostream &operator<<(std::ostream &stream, const Value &value) +{ + return stream << value.stringValue(); +} + /** * End of namespace */ -- cgit v1.2.3