Change zmq_monitor_fn type to cast between pointer-to-object and pointer-to-function in a more standards compliant way

This commit is contained in:
Lourens Naudé
2012-05-20 18:16:23 +01:00
parent 5ef63318f8
commit 06cce15479
4 changed files with 14 additions and 11 deletions

View File

@@ -1030,7 +1030,7 @@ void zmq::socket_base_t::monitor_event (int event_, ...)
default:
zmq_assert (false);
}
options.monitor ((void *)this, event_, &data);
options.monitor->function ((void *)this, event_, &data);
va_end (args);
}
}