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