
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/17/2010 01:16 AM, Jeffrey Lee Hellrung, Jr. wrote:
[...] But I don't understand why it failed in the first place. [...] Why aren't they visible without the base class name from *within* the combined class?
In short: Your base classes are dependent types, so using anything from them (functions, types, templates, etc.) will have to be explicitly qualified (as you've discovered) or brought into the derived class' scope with a using declaration.
In (not-so) long: For example,
http://womble.decadentplace.org.uk/c++/template-faq.html#base-lookup
Ugly, but I can see the reasoning behind it now. Thanks, to you and Scott McMurray, and the person who sent a private e-mail referring me to the same page (who I assume wishes to remain anonymous). I can't tell from that page, but I assume that using the "standard" method (i.e. specifying the full base class name before the function name) will work on what that page calls "intermediate" and "CFront" compilers as well? In other words, does anyone here know of any compatibility problems caused by that, or by a "using" directive in the class to do the same thing? - -- Chad Nelson Oak Circle Software, Inc. * * * -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwZtGwACgkQp9x9jeZ9/wQ6VwCg6W4fefn7+ju4PNKOPYRPlRoQ ShwAn1/Xpdgr1ZGFguY8Fwdlzq1nadAB =DzL5 -----END PGP SIGNATURE-----