relational::~relational()
{
debugmsg("relational destructor",LOGLEVEL_DESTRUCT);
- destroy(0);
+ destroy(false);
}
relational::relational(const relational & other)
{
debugmsg("relational operator=",LOGLEVEL_ASSIGNMENT);
if (this != &other) {
- destroy(1);
+ destroy(true);
copy(other);
}
return *this;
if (level == -max_recursion_level) {
throw(std::runtime_error("max recursion level reached"));
}
- return (new relational(lh.eval(level-1),rh.eval(level-1),o))->
- setflag(status_flags::dynallocated |
- status_flags::evaluated );
+ return (new relational(lh.eval(level-1),rh.eval(level-1),o))->setflag(status_flags::dynallocated | status_flags::evaluated);
}
ex relational::evalf(int level) const
if (level == -max_recursion_level) {
throw(std::runtime_error("max recursion level reached"));
}
- return (new relational(lh.eval(level-1),rh.eval(level-1),o))->
- setflag(status_flags::dynallocated);
+ return (new relational(lh.eval(level-1),rh.eval(level-1),o))->setflag(status_flags::dynallocated);
}
ex relational::simplify_ncmul(const exvector & v) const