X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fmemcached.hpp;h=e0e1485101aaa41c9c7a8593dc379d2ff0b2feab;hb=20ac79fc8f8999f39b4fb33e55d4a205ce0c9a10;hp=c4953975817bdf66201aaa5b2cd028ec590d79a5;hpb=89577febff3909fe3498c40699aae8f933c122c0;p=awesomized%2Flibmemcached diff --git a/libtest/memcached.hpp b/libtest/memcached.hpp index c4953975..e0e14851 100644 --- a/libtest/memcached.hpp +++ b/libtest/memcached.hpp @@ -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(&memc)) == rc) { return true; } @@ -49,7 +49,7 @@ inline bool operator== (const memcached_st& memc, const memcached_return_t rc) inline bool operator!= (const memcached_st& memc, const memcached_return_t rc) { - if (memcached_last_error(&memc) != rc) + if (memcached_last_error(const_cast(&memc)) != rc) { return true; } @@ -59,7 +59,7 @@ inline bool operator!= (const memcached_st& memc, const memcached_return_t rc) inline bool operator!= (const memcached_return_t rc, const memcached_st& memc) { - if (memcached_last_error(&memc) != rc) + if (memcached_last_error(const_cast(&memc)) != rc) { return true; }