int wildcard::compare_same_type(const basic & other) const
{
- GINAC_ASSERT(is_of_type(other, wildcard));
+ GINAC_ASSERT(is_a<wildcard>(other));
const wildcard &o = static_cast<const wildcard &>(other);
if (label == o.label)
{
debugmsg("wildcard print", LOGLEVEL_PRINT);
- if (is_of_type(c, print_tree)) {
+ if (is_a<print_tree>(c)) {
c.s << std::string(level, ' ') << class_name() << " (" << label << ")"
<< std::hex << ", hash=0x" << hashvalue << ", flags=0x" << flags << std::dec
<< std::endl;
// Wildcards must match each other exactly (this is required for
// subs() to work properly because in the final step it substitutes
// all wildcards by their matching expressions)
- return is_equal(*pattern.bp);
+ return is_equal(ex_to<basic>(pattern));
}
} // namespace GiNaC