It's very easy for a user to crash the program. All the user has to do is pass something like "%s". If the stack happens to contain zeros or something that translates into an address that the...
Personally, I'd rather resurrect an old thread rather than starting a whole new one. At least all the history is in the same place then. But that is just my humble opinion....
Wow, a unique class for every goto? That sounds much more maintainable than just using a goto! Then there's the argument about performance (which others have brought up).
Consider what happens if another function in try block also happens to throw an integer. That throw will trigger your goto replacement instead of up to the next matching catch block higher up the...
I've had this very same problem. The problem is that by default, the calling convention for C++/CLI projects is __cdecl. However, the callback functions need to be declared __stdcall. Here is an...
First, I'm not sure that a std::list is the right container for you. I don't know the details of your implementation, but I would consider either std::vector which will allow for faster iteration, a...
If you wanted to minimize the surface area of the manhole, then you'd want to choose a shape that represents the profile of people as viewed from above (or below) and choose the minimum size so that...
You've missed my point. I don't like the idea of undefined behavior. That allows the compiler vendors to allow demons flying out of my nose. I'm contacting Bjarne, Herb, and P.J. and team to...
Secondly, the call to stripWhiteSpace isn't entirely helpful as it removes white space from the beginning of the string. Unnecessary white space at the...
Why does it have to be my nose demons fly out of? :mad: Why can't it be the developer's nose who wrote the offending code? I'm going to contact Bjarne, Herb, P.J., and the rest of the standards...
:ehh: From what I've seen you write at CG, I'd have thought you've been programming longer professionally. :D (That's why I made the comment about being surprised.)