Forum

Print_CArrObj template - better use (if I'm not mistaken)

well I don't know Why, but after getting acquainted with this topic & some of my tests, that I will not reproduce now, - I found that such code ONLY template < typename T, typename U, typename T0> void PrintArrObj( const T &arrobj0) { T arrobj= (T) arrobj0; int sz=arrobj.Total(); int i= 0 ;

possible loss of data due to type conversion

if I need simple math operation: datetime dt1, dt2; int Dist; double Scale; dt2= dt1+(Dist*Scale); how to adjust datatypes to avoid the warning ? & to get the result of calculation in datetime datatype... how to adjust correctly all variables to long or to datetime ? (I suppose adjustment should be