projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
tests: fix kill(HUP) test
[awesomized/libmemcached]
/
libmemcachedutil-1.0
/
ostream.hpp
diff --git
a/libmemcachedutil-1.0/ostream.hpp
b/libmemcachedutil-1.0/ostream.hpp
index 41134140c70f4f145e494c47df055099caa2fd14..cce7bfcdc97637cfce78607d50ac6c36aa38d082 100644
(file)
--- a/
libmemcachedutil-1.0/ostream.hpp
+++ b/
libmemcachedutil-1.0/ostream.hpp
@@
-41,3
+41,10
@@
static inline std::ostream& operator<<(std::ostream& output, const enum memcache
output << memcached_strerror(NULL, arg);
return output;
}
output << memcached_strerror(NULL, arg);
return output;
}
+
+static inline std::ostream& operator<<(std::ostream& output, const memcached_st &arg)
+{
+ output << " query_id: " << memcached_query_id(&arg);
+ output << " error: " << memcached_last_error_message(&arg);
+ return output;
+}