Re: ctor style cast vs c style cast

2007-12-14 Thread Andreas Schwab
"Peter A. Felvegi" <[EMAIL PROTECTED]> writes: > today i've run into this: if i cast a double value to an unsigned int > using the C style cast when passing it to printf, it's fine. however, if > i use the ctor style cast, i get a compile error. This question is off-topic here, please use [EMAIL

Re: ctor style cast vs c style cast

2007-12-13 Thread David Fang
today i've run into this: if i cast a double value to an unsigned int using the C style cast when passing it to printf, it's fine. however, if i use the ctor style cast, i get a compile error. in theory, these two should do the same: create a temporary unsigned int, and assign the double to it aft

ctor style cast vs c style cast

2007-12-13 Thread Peter A. Felvegi
hello all, today i've run into this: if i cast a double value to an unsigned int using the C style cast when passing it to printf, it's fine. however, if i use the ctor style cast, i get a compile error. in theory, these two should do the same: create a temporary unsigned int, and assign the doubl