Search:

Type: Posts; User: whiteflags

Search: Search took 0.08 seconds.

  1. Replies
    30
    Views
    7,222

    Frankly, if I'm to take that quote seriously, you...

    Frankly, if I'm to take that quote seriously, you are actually saving space, not overhead. Overhead is basically a run-time performance cost you incur using ... almost anything. Arrays incur it when...
  2. Replies
    30
    Views
    7,222

    Basically what I said, but I wanted to make the...

    Basically what I said, but I wanted to make the point that by itself, a destructor isn't going to save you from memory leaks like I thought Kyo was saying.
  3. Replies
    30
    Views
    7,222

    Well if you want my opinion on it, pointers don't...

    Well if you want my opinion on it, pointers don't break C++, C++ broke pointers.

    Yay.

    But programmers are a battered wife to C++ and it's a lot easier to try to do things its way. C++'s own...
  4. Replies
    30
    Views
    7,222

    Actually the allocator's destructor would never...

    Actually the allocator's destructor would never be called, since the STL uses allocator objects, and I'm not privy to whether that's important or not. ~vector() will be called.
  5. Replies
    30
    Views
    7,222

    Memory leaks can be caused by incredibly innocent...

    Memory leaks can be caused by incredibly innocent things, like throwing exceptions from constructors. Say new throws in the constructor: your object's destructor never gets called. Those member data...
Results 1 to 5 of 5