I'm using C++11 to write a network program on OS X. When I try to call kevent
function, I find it conflict with the kevent
struct. What should I do?
I want to call kevent
function to wait for event instead of calling kevent
struct's constructor.
update
I read the answer from Constructor of class with conflicting name
After add parentheses to kevent
,it become type cast expression.
I do want to call function
this is my code
kevent(event_loop_fd_, change_list.data(), 1, event_list.data(), 1, NULL, &timeout_struct)