I define my own variant
type like so:
typedef variant<myobj **, ... other types> VariantData;
One of my class methods gets this data type as a parameter and tries to do something like:
void MyMethod(VariantData var){
//method body
if(some_cond){ // if true, then it implies that var is of type
// myobj **
do_something(*var); // however, I'm unable to dereference it
}
// ... ther unnecessary stuff
}
As a result, when I compile my program, I get this error message:
error: no match for 'operator*' (operand type is 'VariantData ....'
I do not know how to fix this error. PS. On the whole the code works well - if I comment out this part related to dereferencing, then everything runs smoothly.