I am trying to compare two types using the pattern
if(T1::get_type() != T2::get_type()) <do_something>
Questa fails this at runtime, calling it an illegal comparison. I wish I could use the type operator, but I also need to support VCS, and VCS does not support the type operator.
Also, T1 and T2 could be parameterized classes, specifically parameterized UVM components. Don't know if that matters.
Any help is greatly appreciated.