X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fstructure.pl;h=809ae2682f7548e8be01123b05e921b30af2e381;hp=8b644540ca4cee81776156d810c6c203b4abf5d5;hb=725021581cc862520c1f04b253ecb86f28032f69;hpb=591b85b0697370f2f5f25a29a1e94ff831a02c12 diff --git a/ginac/structure.pl b/ginac/structure.pl index 8b644540..809ae268 100755 --- a/ginac/structure.pl +++ b/ginac/structure.pl @@ -125,7 +125,7 @@ $interface=< - (const_cast(other)); + ${STRUCTURE} const &o = static_cast(other); int cmpval; ${compare_statements} return 0; @@ -443,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; }