/** Used internally by operator-() and friends to change the sign of an argument. */
static inline const ex exminus(const ex & lh)
{
- return (new mul(lh,_ex_1()))->setflag(status_flags::dynallocated);
+ return (new mul(lh,_ex_1))->setflag(status_flags::dynallocated);
}
// binary arithmetic operators ex with ex
const ex operator/(const ex & lh, const ex & rh)
{
debugmsg("operator/(ex,ex)",LOGLEVEL_OPERATOR);
- return exmul(lh, power(rh,_ex_1()));
+ return exmul(lh, power(rh,_ex_1));
}
ex & operator/=(ex & lh, const ex & rh)
{
debugmsg("operator/=(ex,ex)",LOGLEVEL_OPERATOR);
- return lh = exmul(lh, power(rh,_ex_1()));
+ return lh = exmul(lh, power(rh,_ex_1));
}
const numeric operator-(const numeric & lh)
{
debugmsg("operator-(numeric)",LOGLEVEL_OPERATOR);
- return _num_1().mul(lh);
+ return _num_1.mul(lh);
}
ex & operator++(ex & rh)
{
debugmsg("operator++(ex)",LOGLEVEL_OPERATOR);
- return rh = exadd(rh, _ex1());
+ return rh = exadd(rh, _ex1);
}
/** Expression prefix decrement. Subtracts 1 and returns decremented ex. */
ex & operator--(ex & rh)
{
debugmsg("operator--(ex)",LOGLEVEL_OPERATOR);
- return rh = exadd(rh, _ex_1());
+ return rh = exadd(rh, _ex_1);
}
/** Expression postfix increment. Returns the ex and leaves the original
{
debugmsg("operator++(ex,int)",LOGLEVEL_OPERATOR);
ex tmp(lh);
- lh = exadd(lh, _ex1());
+ lh = exadd(lh, _ex1);
return tmp;
}
{
debugmsg("operator--(ex,int)",LOGLEVEL_OPERATOR);
ex tmp(lh);
- lh = exadd(lh, _ex_1());
+ lh = exadd(lh, _ex_1);
return tmp;
}
numeric& operator++(numeric & rh)
{
debugmsg("operator++(numeric)",LOGLEVEL_OPERATOR);
- rh = rh.add(_num1());
+ rh = rh.add(_num1);
return rh;
}
numeric& operator--(numeric & rh)
{
debugmsg("operator--(numeric)",LOGLEVEL_OPERATOR);
- rh = rh.add(_num_1());
+ rh = rh.add(_num_1);
return rh;
}
{
debugmsg("operator++(numeric,int)",LOGLEVEL_OPERATOR);
numeric tmp(lh);
- lh = lh.add(_num1());
+ lh = lh.add(_num1);
return tmp;
}
{
debugmsg("operator--(numeric,int)",LOGLEVEL_OPERATOR);
numeric tmp(lh);
- lh = lh.add(_num_1());
+ lh = lh.add(_num_1);
return tmp;
}