add::~add()
{
debugmsg("add destructor",LOGLEVEL_DESTRUCT);
- destroy(0);
+ destroy(false);
}
add::add(const add & other)
{
debugmsg("add operator=",LOGLEVEL_ASSIGNMENT);
if (this != &other) {
- destroy(1);
+ destroy(true);
copy(other);
}
return *this;
first = false;
}
if (!coeff.is_equal(_num1()) &&
- !coeff.is_equal(_num_1())) {
+ !coeff.is_equal(_num_1())) {
if (coeff.is_rational()) {
if (coeff.is_negative())
os << -coeff;
epvector::const_iterator it=seq.begin();
while (it!=seq.end()) {
coeffseq.push_back(combine_ex_with_coeff_to_pair((*it).rest.coeff(s,n),
- (*it).coeff));
+ (*it).coeff));
++it;
}
if (n==0) {
if (evaled_seqp!=0) {
// do more evaluation later
return (new add(evaled_seqp,overall_coeff))->
- setflag(status_flags::dynallocated);
+ setflag(status_flags::dynallocated);
}
#ifdef DO_GINAC_ASSERT
if (vp==0)
return *this;
- return (new add(vp,overall_coeff))->
- setflag(status_flags::expanded |
- status_flags::dynallocated);
+ return (new add(vp,overall_coeff))->setflag(status_flags::expanded | status_flags::dynallocated);
}
//////////
//////////
const add some_add;
-const type_info & typeid_add = typeid(some_add);
+const std::type_info & typeid_add = typeid(some_add);
#ifndef NO_NAMESPACE_GINAC
} // namespace GiNaC