title: Is it possible to call a method pointer with a void* pointer to the object
body: <p>I have a struct, that contains a void* pointer to an object and a function pointer to some method of that object's class. I don't (and can't) have information of that objects' class, so I need a void*. I tried to call the method by this:</p>
  <pre><code>object-&gt;*function(args) 
  </code></pre>
  <p>When I try to compile this with msvc I get two errors: C2296 and C2297
  C2296 states, that the &quot;-&gt;<em>&quot; is invalid because the left operand is invalid because it is of type &quot;void</em>&quot;
  C2297 states the same, but with the right operand and type &quot;bool&quot;</p>