~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to libtest/memcached.hpp

  • Committer: Continuous Integration
  • Date: 2012-10-22 05:56:09 UTC
  • mfrom: (1086.1.8 libmemcached-1.0)
  • Revision ID: ci@tangent.org-20121022055609-cbooaw9bcdal4qge
Merge lp:~tangent-org/libmemcached/1.0-build Build: jenkins-Libmemcached-1.0-87

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
40
40
inline bool operator== (const memcached_st& memc, const memcached_return_t rc)
41
41
{
42
 
  if (memcached_last_error(&memc) == rc)
 
42
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) == rc)
43
43
  {
44
44
    return true;
45
45
  }
49
49
 
50
50
inline bool operator!= (const memcached_st& memc, const memcached_return_t rc)
51
51
{
52
 
  if (memcached_last_error(&memc) != rc)
 
52
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
53
53
  {
54
54
    return true;
55
55
  }
59
59
 
60
60
inline bool operator!= (const memcached_return_t rc, const memcached_st& memc)
61
61
{
62
 
  if (memcached_last_error(&memc) != rc)
 
62
  if (memcached_last_error(const_cast<memcached_st *>(&memc)) != rc)
63
63
  {
64
64
    return true;
65
65
  }