- revamped indexed objects
[ginac.git] / ginac / constant.cpp
index 56f5a85179b38eb814bddeef0615e381b0335b29..9002515452c7dc7eed3b39532aa4badec8b9ad3b 100644 (file)
@@ -138,7 +138,7 @@ void constant::print(std::ostream & os, unsigned upper_precedence) const
 void constant::printraw(std::ostream & os) const
 {
        debugmsg("constant printraw",LOGLEVEL_PRINT);
-       os << "constant(" << name << ")";
+       os << class_name() << "(" << name << ")";
 }
 
 void constant::printtree(std::ostream & os, unsigned indent) const