i know:
- &varname is the adress of varname;
- *varname is the value of adressed variable.
but:
void *Vvariant=NULL;
friend ostream& operator <<(ostream &os,const variant2 &obj)
{
os << obj.Vvariant; //how can i get the value of adressed variable?
return os;
}
how can i get the value of adressed variable?