[GiNaC-devel] problem with dbgprint.

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Thu Sep 30 21:51:03 CEST 2004


On Thu, 30 Sep 2004, Christian Bauer wrote:
> On Thu, Sep 23, 2004 at 11:58:23AM +0200, Chris Dams wrote:
> > This is because in basic::dbgprint a print_context is constructed from
> > std::cerr and not a print_dflt. Changing, in basic::dbgprint, the line
> > 	this->print(std::cerr);
> > into
> > 	this->print(print_dflt(std::cerr));
> > solves this problem.
>
> Ok. Thanks!

Oh, maybe I'm just dense, but I fail to see why it worked fine with mul or
add or any other object.  Since basic::dbgprint isn't overridden anywhere,
why did it fail with power objects only?

Curious
     -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>




More information about the GiNaC-devel mailing list