RE:[ROOT] STL: complex

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Wed Apr 12 2000 - 23:14:52 MEST


Hello Rolf,

Thank you for reporting this problem. This was a cint bug. Cint
was not instantiating definition of template friend function. I'll
fix this in cint5.14.36.

Best Regards,
Masaharu Goto


>
>Dear rooters,
>
> I tried to use the template class complex and get senseless output
>and errors for abs() and exp() (see below). Why? 
> In case this is just not implemented/working yet, sorry. But if
>I do something wrong in using complex, please tell me.
>
>In root 2.23/12 (2.24/02) on Linux/Solaris:
>
>root [0] #include <complex>      
>root [1] complex<double> f(1,1)  
>root [2] std::abs(f)             
>(int)140493392
>root [3] std::exp(f)           
>Error: exp param[0]=1.40493e+08 up:709 low:-Inf out of range 
FILE:/tmp/25841eaa_cint LINE:1
>*** Interpreter error recovered ***
>
>
>Cheers,
>Rolf
>
>



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:23 MET