class Socket{ //implementation
};
struct PollSocket : pollfd {
Socket mSocket;
// some methods
}
std::vector<PollSocket> mPolledSockets;
poll(mPolledSockets.data(), mPolledSockets.size(), 0);
Can I pass inherited structs to poll()? If not, why? It seems I get a lot of bugs in such case.