Deriving into different namespaces
Georg C. F. Greve
greve@gnu.org
Fri Dec 31 23:54:00 GMT 1999
|| On Mon, 20 Dec 1999 19:21:18 +0100
|| "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> wrote:
>> So it seems that the compiler believes that mynamespace::Base is not
>> the base of mynamespace::A::derived1 - but it should be.
mvl> Thanks for your bug report. Unfortunately, I cannot reproduce the
mvl> problem; please read
The problem was caused by a nasty typo/brain bug... at the point where
the derived classes have been declared first (so they could be made
friend) I wrote "class" instead of "namespace" - which made it link
and compile *until* one tries to cast from one type to another. Sorry
for the inconvenience - I have no idea what made me write "class"
although I wanted to write "namespace." Sheesh.
Regards,
Georg
--
-----BEGIN PGP MESSAGE-----
Version: 2.6.3i
Comment: Processed by Mailcrypt 3.5.4, an Emacs/PGP interface
iQCVAwUBOF7GiVZXgZXDxqJtAQHtxAP/R8ILJ4LvglpREdUbS4nlztEOIx2XHaUh
RL4/m8TrrNkwATcOjizP9HopvhftUQUWZW5xVmBaCtn8vjLZOKHmnIW3GGpdqKjd
KxaZO2bcgEwpVtwJTwZn0TZFnm87LG2ZqoNaX9/YmCC+lDFZKhA2dIgWPAUgwExq
GwIz0ByI7BM=
=uAVi
-----END PGP MESSAGE-----
More information about the Gcc
mailing list