Type: Posts; User: KevinHall
Search took 0.05 seconds.
November 19th, 2007, 12:53 AM
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...
September 26th, 2007, 03:14 PM
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....
(Of course it...
September 26th, 2007, 01:53 PM
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).
But you obviously...
September 26th, 2007, 10:59 AM
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...
September 19th, 2007, 11:46 AM
Glad I could help. That other thread is interesting. I didn't know this type of attribute existed:
That may make life easier the next...
September 18th, 2007, 10:56 AM
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...
September 13th, 2007, 12:34 PM
Here's an interesting thread that may offer some insight:
In that thread, Boost Multi-Index and Boost RTL (Relational Template Library --...
September 13th, 2007, 12:11 PM
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...
January 31st, 2007, 10:45 AM
I saw your message in comp.lang.c++. I responded there with a detailed opinion on both Boost threads, ZThreads, and pthreads.
But I'll restate briefly that I don't really think either Boost...
December 12th, 2006, 04:14 PM
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...
November 27th, 2006, 01:09 PM
:blush: That was easy! Thanks.
I deal with C++ (ISO, not managed or C++/CLI) 98% of the time and have to dabble with VB.NET every once in a while.
November 27th, 2006, 12:59 PM
Also note that g++ is not 100% ISO compliant.
As for 100% compliant compilers, I only know of Comeau (which generates C code and requires a C compiler back-end). Intel C++ 9.1 claims 100%...
November 27th, 2006, 12:51 PM
Yes, visual studio 2005 (Professional) reports errors:
c:\test\codegurutest\codegurutest\codegurutest.cpp(17) : error C2065: 't_Heap' : undeclared identifier...
November 27th, 2006, 11:34 AM
In VB6, it was easy to pass a array of a certain type (ok, technically it was a array of variants) into a function as follows:
x = Foo(Array(2,3,5,7)) 'Array of integers
I know that in...
November 16th, 2006, 11:15 AM
-- Oops... should have been a PM --
November 14th, 2006, 02:39 PM
November 14th, 2006, 12:45 PM
As Paul said, std::set is about as fast as it can be. Profile first as Mr. Viggy said. Determine what the real bottleneck is. Is it:
* Memory allocations
* Element insertion and removal
November 14th, 2006, 12:01 PM
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...
November 14th, 2006, 04:04 AM
Ooopss.... double post. Sorry.
November 14th, 2006, 04:02 AM
First of all, please use CODE tags:
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...
November 14th, 2006, 12:02 AM
All our exceptions do derive from std::exception. :thumb: :D The problem was that sometimes we needed to add more visibility. For example:
catch (CppLibException& e)...
November 13th, 2006, 11:16 PM
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...
November 13th, 2006, 03:24 PM
Yeah, preprocessor operators. Total brain-fart there. :o
November 13th, 2006, 03:18 PM
: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.)
Well, perhaps I should...
November 12th, 2006, 11:22 PM
:lol: :thumb: :D :lol: True, true!!!
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.