Dave Rudolf wrote in news::
> Hey all,
>
> I have a philosophical question for you folks -- that is, I don't
> really need an immediate solution, but rather I am just curious.
>
> Is there some way to make forward declarations for internal classes.
No, though you can do this:
class Outer
{
class Inner; /* kinda forward declare */
};
class Outer::Inner /* define */
{
};
> The situlation that I have is probably best illustrated with some
> code:
>
>
> // legal forward declaration
> class B;
>
>
> // illegal forward declaration
> // class B::Bi;
>
> class A
> {
This is illegal too, B is an *incomplete* type, you can declare
pointers and references to B (B*, B& etc) but not B's.
> B _b;
> // B::Bi _bi;
> };
>
[snip]
Rob.
--
http://www.victim-prime.dsl.pipex.com/