return i==0 ? lh : rh;
}
-ex relational::map(map_func f) const
-{
- return (new relational(f(lh), f(rh), o))->setflag(status_flags::dynallocated);
-}
-
ex relational::eval(int level) const
{
if (level==1)
// cannot decide on non-numerical results
return o==not_equal ? true : false;
- int cmpval = ex_to_numeric(df).compare(_num0());
+ int cmpval = ex_to<numeric>(df).compare(_num0());
switch (o) {
case equal:
return cmpval==0;