public:
${STRUCTURE}(${constructor_arglist});
- // functions overriding virtual functions from bases classes
+ // functions overriding virtual functions from base classes
public:
basic * duplicate() const;
void print(const print_context & c, unsigned level = 0) const;
extern const type_info & typeid_${STRUCTURE};
extern const unsigned tinfo_${STRUCTURE};
-// macros
-
-#define ex_to_${STRUCTURE}(X) (static_cast<${STRUCTURE} const &>(*(X).bp))
-
} // namespace GiNaC
#endif // ndef _${STRUCTURE_UC}_H_
}
//////////
-// functions overriding virtual functions from bases classes
+// functions overriding virtual functions from base classes
//////////
// public
int ${STRUCTURE}::compare_same_type(const basic & other) const
{
GINAC_ASSERT(is_of_type(other,${STRUCTURE}));
- ${STRUCTURE} const & o=static_cast<${STRUCTURE} const &>
- (const_cast<basic &>(other));
+ ${STRUCTURE} const &o = static_cast<const ${STRUCTURE} &>(other);
int cmpval;
${compare_statements}
return 0;
bool ${STRUCTURE}::is_equal_same_type(const basic & other) const
{
GINAC_ASSERT(is_of_type(other,${STRUCTURE}));
- ${STRUCTURE} const & o=static_cast<${STRUCTURE} const &>
- (const_cast<basic &>(other));
+ ${STRUCTURE} const &o = static_cast<const ${STRUCTURE} &>(other);
${is_equal_statements}
return true;
}