shinberg / cpp-hiredis-cluster

c++ cluster wrapper for hiredis with async and unix sockets features
BSD 3-Clause "New" or "Revised" License
65 stars 26 forks source link

fixed RedisCluster::HiredisProcess::checkCritical() call #22

Closed sb0y closed 7 years ago

sb0y commented 7 years ago

At compile with included hirediscommand.h I got error:

/home/sb0y/projects/jobler-core/src/redis/include/hirediscommand.h:207:42: error: no matching function for call to ‘RedisCluster::HiredisProcess::checkCritical(redisReply*&, bool, const char [1], redisContext*&)’
             HiredisProcess::checkCritical(reply, false, "", con.second);
                                          ^
In file included from /home/sb0y/projects/jobler-core/src/redis/include/asynchirediscommand.h:38:0,
                 from /home/sb0y/projects/jobler-core/src/session.cpp:13:
/home/sb0y/projects/jobler-core/src/redis/include/hiredisprocess.h:100:21: note: candidate: static void RedisCluster::HiredisProcess::checkCritical(redisReply*, bool, bool, std::__cxx11::string, redisContext*)
         static void checkCritical( redisReply *reply, bool errorcritical, bool free_reply_obj = true,
                     ^
/home/sb0y/projects/jobler-core/src/redis/include/hiredisprocess.h:100:21: note:   no known conversion for argument 4 from ‘redisContext*’ to ‘std::__cxx11::string {aka std::__cxx11::basic_string<char>}’