"Stephane Routelous" <no****@nowhere.com> wrote in message
news:c1**********@dns3.cae.ca
Hi,
I would like to make a forward declaration of a strcuture nested in a
class. I have
file A.h
class A
{
public:
struct B
{
};
};
file C.h
class C
{
public:
static doIt(const A::B& object);
};
I tried :
struct A::B;
but it doesn't work ( MSVCPP 6.0 last SP )
Is it a way to do that ?
No, the only type of forward declaration allowed for a nested class is one
inside the enclosing class, e.g.,
class Outer
{
// forward declaration of inner class
class Inner;
// other stuff
}
// full declaration of inner class
class Outer::Inner
{
// Inner stuff
};
--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)