Skip to content

Commit

Permalink
Merge pull request #120 from bjovke/master
Browse files Browse the repository at this point in the history
Code formatting, sorry...
  • Loading branch information
bluca authored Apr 9, 2017
2 parents bd1d53d + 46fc057 commit 0feae8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zmq.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,8 @@ namespace zmq
int rc = zmq_poller_wait_all (poller_ptr, poller_events.data (), poller_events.size (), static_cast<long>(timeout.count ()));
if (rc >= 0) {
std::for_each (poller_events.begin (), poller_events.begin () + rc, [](zmq_poller_event_t& event) {
if (event.user_data != NULL) (*reinterpret_cast<std::function<void(void)>*> (event.user_data)) ();
if (event.user_data != NULL)
(*reinterpret_cast<std::function<void(void)>*> (event.user_data)) ();
});
return true;
}
Expand Down

0 comments on commit 0feae8c

Please sign in to comment.