for vs2015

This commit is contained in:
mutouyun 2019-03-25 23:22:30 +08:00
parent 731f61a3c1
commit c49c15f640

View File

@ -101,11 +101,7 @@ constexpr static conn_info_t* info_of(ipc::handle_t h) {
}
constexpr static queue_t* queue_of(ipc::handle_t h) {
auto info = info_of(h);
if (info == nullptr) {
return nullptr;
}
return &(info->que_);
return (info_of(h) == nullptr) ? nullptr : &(info_of(h)->que_);
}
static auto& recv_cache() {