]> www.ginac.de Git - ginac.git/blobdiff - ginac/constant.cpp
- Cleanups: My evil plot of making ex::bp private may finally be carried
[ginac.git] / ginac / constant.cpp
index 844a08a285f073acc32b28aeb8985e9def6f26e6..d2a74b2d69205b53655fded7f46cabb7604afab2 100644 (file)
@@ -190,7 +190,7 @@ ex constant::derivative(const symbol & s) const
 
 int constant::compare_same_type(const basic & other) const
 {
-       GINAC_ASSERT(is_exactly_of_type(other, constant));
+       GINAC_ASSERT(is_exactly_a<constant>(other));
        const constant &o = static_cast<const constant &>(other);
 
        if (serial == o.serial)
@@ -201,7 +201,7 @@ int constant::compare_same_type(const basic & other) const
 
 bool constant::is_equal_same_type(const basic & other) const
 {
-       GINAC_ASSERT(is_exactly_of_type(other, constant));
+       GINAC_ASSERT(is_exactly_a<constant>(other));
        const constant &o = static_cast<const constant &>(other);
 
        return serial == o.serial;