c++ arithmetic with unknown types:void pointers?
<p>(I want to deal with "void" I am avoid "template class" because it is too much trouble)</p>

<p>ok establish some ground</p>

<pre><code>int aa=3;
int bb=4;
int cc=0;

int *a, *b, *c;

a = &amp;aa;
b = &amp;bb;
c = &amp;cc;

*c = *a +*b; //yields 7
</code></pre>

<p>but I want to do the following:</p>

<pre><code>void *va;
void *vb;
void *vc;

va = a;
vb = b;

*c = (int)(*va + *vb);  // &lt;-- 3 errors see below
</code></pre>

<p>but I get errors:</p>

<pre><code> error C2100: illegal indirection
 error C2100: illegal indirection
 error C2110: cannot add two pointers
</code></pre>
