Ignore:
Timestamp:
04/18/12 15:19:39 (12 years ago)
Author:
KohjiNakamura
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STMath.cpp

    r2460 r2470  
    221221      uInt const values1[] = { rec.asuInt("IFNO"), rec.asuInt("BEAMNO"), rec.asuInt("POLNO") };
    222222      SingleTypeEqPredicate<uInt, 3> myPred(tin, colNames1, values1);
    223       CustomTableExprNode myExpr(tin, myPred);
     223      CustomTableExprNodeRep myNodeRep(tin, myPred);
     224      myNodeRep.link(); // to avoid automatic delete when myExpr is destructed.
     225      CustomTableExprNode myExpr(myNodeRep);
    224226      Table basesubt = tin(myExpr);
     227cout << "CustomTableExprNode selected row number is " << basesubt.nrow() << "/" << tin.nrow() << endl;
    225228#else
    226229      Table basesubt = tin( tin.col("BEAMNO") == Int(rec.asuInt("BEAMNO"))
Note: See TracChangeset for help on using the changeset viewer.