diff --git a/base_from_member.html b/base_from_member.html index 823bcb1..f9b3e30 100644 --- a/base_from_member.html +++ b/base_from_member.html @@ -64,11 +64,12 @@ public:

This is undefined because C++'s initialization order mandates that -the base class is initialized before the member it uses. Ron Klatchko -developed a way around this by using the initialization order in his -favor. Base classes are intialized in order of declaration, so moving -the desired member to another base class, that is initialized before the -desired base class, can ensure proper initialization.

+the base class is initialized before the member it uses. R. Samuel Klatchko developed a way +around this by using the initialization order in his favor. Base +classes are intialized in order of declaration, so moving the desired +member to another base class, that is initialized before the desired +base class, can ensure proper initialization.

A custom base class can be made for this idiom:

@@ -325,7 +326,9 @@ with the exact pointer type used in switcher's constructor.

Ed Brey
Suggested some interface changes. -
Ron Klatchko (ron@crl.com) +
R. Samuel Klatchko (rsk@moocat.org, rsk@brightmail.com)
Invented the idiom of how to use a class member for initializing a base class.