template Set Set::unionSet(void* unioned) { Set *temp = (Set*)unioned; for(int i=0; i < pos; i++) temp->insert(setPtr[i]); return *temp; }