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...
Type: Posts; User: kmdv
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...
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...
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...
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...