Search:

Type: Posts; User: antred

Search: Search took 0.01 seconds.

  1. Agreed. And it applies to more than just...

    Agreed. And it applies to more than just pointers. I'm personally so very very sick of stumbling across functions / methods where the programmer has declared a gazillion local variables at the top,...
  2. I agree but went with 0 over nullptr because the...

    I agree but went with 0 over nullptr because the OP stated he was working with MSVC 2008, which (unless I'm horribly mistaken) has no C++11 support whatsoever.
  3. The difference is that with initialization lists...

    The difference is that with initialization lists you actually INITIALIZE your members to specific values. Your first approach would first default initialize your members (or not initialize them at...
  4. If that was really how the author justified...

    If that was really how the author justified allocating two arrays of size 1 just to store a friggin' null-termination character in them then yes, he is most certainly wrong.

    Just initializing your...
  5. Calling delete on a null pointer is a guaranteed...

    Calling delete on a null pointer is a guaranteed no-op in C++. If your compiler generates code that causes a null pointer deletion to crash, throw it away and use something else.
Results 1 to 5 of 5