Torsten Mueller
2005-08-26 09:46:06 UTC
I have sources containing lots of namespaces (even nested ...)
I'm porting these classes to gcc 3.3.2. At the moment I get several
error messages like this:
../../src/libFormalValidation/ErrorCache.h:20:
error: forward declaration of `struct Support::CErrorInfo'
The code at this place is:
namespace Support
{
class CErrorInfo; // <- here
}
This is a forward declaration of a class located in a namespace. This
class name will be used later for pointers, references and template
parameters. This is legal on MSVC and on HPUX aCC. Is this illegal on
gcc?
T.M.
I'm porting these classes to gcc 3.3.2. At the moment I get several
error messages like this:
../../src/libFormalValidation/ErrorCache.h:20:
error: forward declaration of `struct Support::CErrorInfo'
The code at this place is:
namespace Support
{
class CErrorInfo; // <- here
}
This is a forward declaration of a class located in a namespace. This
class name will be used later for pointers, references and template
parameters. This is legal on MSVC and on HPUX aCC. Is this illegal on
gcc?
T.M.