docs: gzip manpages
[m6w6/libmemcached] / libtest / memcached.hpp
index 142f167c31398bec78d87e2272fbd43d65b93b86..5d010faf82704189f55d58dbcc8314495b71bfc3 100644 (file)
@@ -39,7 +39,7 @@
 #if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
 inline bool operator== (const memcached_st& memc, const memcached_return_t rc)
 {
-  if (memcached_last_error(&memc) == rc)
+  if (memcached_last_error(const_cast<memcached_st *>(&memc)) == rc)
   {
     return true;
   }