projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
e1ba5b9
)
bin/memcp: fix cast
author
Michael Wallner
<mike@php.net>
Fri, 20 Nov 2020 10:23:49 +0000
(11:23 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 20 Nov 2020 10:23:49 +0000
(11:23 +0100)
src/bin/memcp.cc
patch
|
blob
|
history
diff --git
a/src/bin/memcp.cc
b/src/bin/memcp.cc
index 114a2f8562328250e8822c12ab398a5a39d95cba..eb7151e65a8680155b565cd1a8870cae48e84792 100644
(file)
--- a/
src/bin/memcp.cc
+++ b/
src/bin/memcp.cc
@@
-46,7
+46,7
@@
struct memcp_file {
};
static inline std::string stream2string(const std::istream &istream) {
- return dynamic_cast<std::ostringstream &>(std::ostringstream{} << istream.rdbuf()).str();
+ return dynamic_cast<std::ostringstream &
&
>(std::ostringstream{} << istream.rdbuf()).str();
}
static memcached_return_t memcp(const client_options &opt, memcached_st &memc, const char *key,