In case you did not know, C++ s....
Last week, I was wrapping some C++ code for a customer and I was surprised that my code did not work properly. I'm not a C++ programmer and thus this error might have been a typical gotcha but still this was a very surprising behavior.
The code in question was:
The line that did not work was the `memcpy' call. It was only tested to fail with Visual Studio 2005 on 64-bit.
I have a workaround and a friend of mine gave me some explanation on this problem. But do you know it? And if you do, do you think the rule is safe?