Regarding compilation error.

Hi All,
I facing the following compilation error; when I implementing the following logic.

ostrstream ostr;
ostr << (( scAxsm.getRecord( i ).getField( 2 ).getShort())%12)!=0?(( scAxsm.getRecord( i ).getField( 2 ).getShort())/12+1)
: (( scAxsm.getRecord( i ).getField( 2 ).getShort())/12) << ends;

The Error is

line 196: Error: The operation "int << unsafe_ostream&(*)(unsafe_ostream&)" is illegal.

Please help me out from this issue.

Thanks
Sweta.

Hi,

Hard to say what is the problem...
Try to isolate problem in simpler program and send comlete version.