diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-09-04 22:40:42 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-09-04 22:40:42 -0700 |
commit | f226554fa5b64c2a152f39e52fd4a56acc06f527 (patch) | |
tree | cb4b42c6797233c5b3590915f6fe43ab346cbcb7 /bindings/cpp/upb/upb.hpp | |
parent | 621c0cdcb5efc4f7c2382031becded018ef0b62b (diff) |
Fleshed out C++ def wrappers some.
Diffstat (limited to 'bindings/cpp/upb/upb.hpp')
-rw-r--r-- | bindings/cpp/upb/upb.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bindings/cpp/upb/upb.hpp b/bindings/cpp/upb/upb.hpp index 460fb43..4fb337d 100644 --- a/bindings/cpp/upb/upb.hpp +++ b/bindings/cpp/upb/upb.hpp @@ -20,6 +20,12 @@ class Status : public upb_status { const char *GetString() const { return upb_status_getstr(this); } }; +class Value : public upb_value { + public: + Value(const upb_value& val) { *this = val; } + Value() {} +}; + INLINE std::ostream& operator<<(std::ostream& out, const Status& status) { out << status.GetString(); return out; |