Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

| >>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:
| 
| >> Is that true that unsigned int - int == int ?
| 
| Andre> No.
| 
| Andre>   unsigned int - int == unsigned int
| 
| Andre> As stupid as this maybe math-wise....
| 
| Yes, that's what I meant to write. So I should static_cast, right?

but abs on a unsigned type or a type converted from unsiged is an
oxymoron, isn't it?

but I guess you are planning a 

        int(uint) - int  thing
 
| And is abs always supposed to be in std:: for all compilers?

yes... together with all standard C functions...

-- 
        Lgb

Reply via email to