Fixes rpcn_client.h func ptr comparison warning

This commit is contained in:
RipleyTom 2021-11-11 05:06:47 +01:00 committed by Megamouse
parent 2248007c9a
commit ba727e13ae
1 changed files with 3 additions and 1 deletions

View File

@ -402,7 +402,9 @@ namespace rpcn
bool operator<(const message_cb_t& other) const bool operator<(const message_cb_t& other) const
{ {
return (cb_func < other.cb_func) || ((!(other.cb_func < cb_func)) && (cb_param < other.cb_param)); const void* void_cb_func = reinterpret_cast<const void*>(cb_func);
const void* void_other_cb_func = reinterpret_cast<const void*>(other.cb_func);
return (void_cb_func < void_other_cb_func) || ((!(void_other_cb_func < void_cb_func)) && (cb_param < other.cb_param));
} }
}; };
shared_mutex mutex_messages; shared_mutex mutex_messages;