Problem: read-only arguments of mtrie are not declared as const

Solution: add const, introduce typedef
This commit is contained in:
Simon Giesecke
2018-02-15 12:32:10 +01:00
parent 31387f84e4
commit 9fc3692e3f
4 changed files with 31 additions and 34 deletions

View File

@@ -188,7 +188,7 @@ int zmq::xpub_t::xsetsockopt (int option_,
return 0;
}
static void stub (unsigned char *data_, size_t size_, void *arg_)
static void stub (zmq::mtrie_t::prefix_t data_, size_t size_, void *arg_)
{
LIBZMQ_UNUSED (data_);
LIBZMQ_UNUSED (size_);
@@ -295,7 +295,7 @@ bool zmq::xpub_t::xhas_in ()
return !pending_data.empty ();
}
void zmq::xpub_t::send_unsubscription (unsigned char *data_,
void zmq::xpub_t::send_unsubscription (zmq::mtrie_t::prefix_t data_,
size_t size_,
void *arg_)
{