On Fri, Jul 18, 2008 at 02:57:58PM +0200, Eduard Bloch wrote: > > Please explain. In C++ there is no implicit conversion between int and > > char *. > Exactly. So if you check the return value then the compiler will fail > (like in the test case above) and you are lucky to notice the problem.
So it fails, completely, you won't get any result from the compiler. > But if you don't check it and rely on the function to do what it has > to do (i.e. write the result into the buffer in the argument) then you > silently get a buffer with undefined data back (most likely > unchanged). No. You have to force the compiler somehow to override the error on the undefined conversion. This is a bug in your code then. Bastian -- Spock: The odds of surviving another attack are 13562190123 to 1, Captain. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]