M
Mail.To.Nathaniel
Hi all 
I have an-easy-to-resolve (I am sure but I am obviously unable to
figure the answer out) problem for C++ gurus.
Here's the situation I have fallen into...
2 header files: H1.h & H2.h
--------------------------------------------------------------------
--- H1.h
--------------------------------------------------------------------
#include "H2.h" // <------ error at compilation (unknown type:
T1c in the T2),
// without the #include: unknown
type T2 in the T11
class T11
{
<...>
T2 method();
}
template <typename T> class T12 :
: T11
{
<...>
}
typedef T1<char> T1c;
--------------------------------------------------------------------
--- H2.h
--------------------------------------------------------------------
#include "H1.h"
class T2
{
<...>
void method(T1c);
}
--------------------------------------------------------------------
Is it possible to resolve the conflict described? Or should I find a
way to avoid this kind of cross calls?
Thanks for any help
I have an-easy-to-resolve (I am sure but I am obviously unable to
figure the answer out) problem for C++ gurus.
Here's the situation I have fallen into...
2 header files: H1.h & H2.h
--------------------------------------------------------------------
--- H1.h
--------------------------------------------------------------------
#include "H2.h" // <------ error at compilation (unknown type:
T1c in the T2),
// without the #include: unknown
type T2 in the T11
class T11
{
<...>
T2 method();
}
template <typename T> class T12 :
: T11
{
<...>
}
typedef T1<char> T1c;
--------------------------------------------------------------------
--- H2.h
--------------------------------------------------------------------
#include "H1.h"
class T2
{
<...>
void method(T1c);
}
--------------------------------------------------------------------
Is it possible to resolve the conflict described? Or should I find a
way to avoid this kind of cross calls?
Thanks for any help