[ROOT] CINT and string streams and doubles

From: Gora Mohanty (gora@solar2.ucr.edu)
Date: Thu Feb 15 2001 - 23:03:25 MET


Hello,
  CINT seems to have trouble with the following simple macro:
{
 istringstream istr( "12:30:24" );
 double i, j, k;
 char s1, s2, end;
 istr >> i >> s1 >> j >> s2 >> k >> end;
 cout << i << ' ' << j << ' ' << k << endl;
}

When trying to execute this with any of ROOT versions 2.23, 2.25, 3.00, it
hangs ROOT. Same problem if I replace istringstream with istrstream. In either
case, it works if I make i, j, and k, ints instead of doubles, but does not
work with floats. So, it seems like CINT is having trouble with floating-point
values.
  Thanks for all the work on ROOT, and thanks in advance for any help with this
problem. If it makes a difference, ROOT is running on a Pentium-II, Linux Suse
6.1 system, with kernel 2.4.1. Compiling an equivalent program with g++ works
fine.

Regards,
Gora



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:09 MEST