Search:

Type: Posts; User: kmdv

Search: Search took 0.01 seconds.

  1. Replies
    16
    Views
    4,816

    My point was that if you can eliminate code that...

    My point was that if you can eliminate code that limits you to do something, why not do that? Of course, only if that is possible and does not make any other harm. In the future, you might want to...
  2. Replies
    16
    Views
    4,816

    I am talking about standard C++, not about...

    I am talking about standard C++, not about ancient compilers.



    An accidental upcast may happen without subverting the type system at all, e.g., by passing the this pointer to the constructor of...
  3. Replies
    16
    Views
    4,816

    What he is doing is "sub-object knowing about its...

    What he is doing is "sub-object knowing about its uninitialised outer-object" which is quite a specific case of simple "sub-object knowing about its outer-object". Storing pointer acquired during...
  4. Replies
    16
    Views
    4,816

    When it comes to your example, what you are doing...

    When it comes to your example, what you are doing is very dangerous and you should definately change your approach. You pass the this pointer of a not-yet-constructed Reader (not all members have...
Results 1 to 4 of 4