Problem: non-modifying member functions not marked as const/static

Solution: add const/static
This commit is contained in:
Simon Giesecke
2019-12-25 15:51:26 +01:00
parent 41e3f14d6a
commit 78961eeab7
33 changed files with 76 additions and 72 deletions

View File

@@ -95,7 +95,7 @@ const char socket_type_scatter[] = "SCATTER";
const char socket_type_dgram[] = "DGRAM";
#endif
const char *zmq::mechanism_t::socket_type_string (int socket_type_) const
const char *zmq::mechanism_t::socket_type_string (int socket_type_)
{
// TODO the order must of the names must correspond to the values resp. order of ZMQ_* socket type definitions in zmq.h!
static const char *names[] = {