X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fstructure.pl;h=5ec55af485cdf4adc4f72d6c6d4aa36646964f13;hp=901c5722d11da5b2f459d2d83c83a0cc3cc35b47;hb=39e0866b8c06441723cdb87e28cc719db6dbd9de;hpb=94c15f8b02a5a9e274d3aedcefd76565861b4219 diff --git a/ginac/structure.pl b/ginac/structure.pl index 901c5722..5ec55af4 100755 --- a/ginac/structure.pl +++ b/ginac/structure.pl @@ -125,7 +125,7 @@ $interface=<(*(X).bp)) - } // namespace GiNaC #endif // ndef _${STRUCTURE_UC}_H_ @@ -228,7 +224,7 @@ $implementation=< - (const_cast(other)); + ${STRUCTURE} const &o = static_cast(other); int cmpval; ${compare_statements} return 0; @@ -447,8 +435,7 @@ ${compare_statements} 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(other)); + ${STRUCTURE} const &o = static_cast(other); ${is_equal_statements} return true; }