H
Hendrik Schober
Hi,
this piece of code
namespace {
template< typename T >
struct X {};
template< typename T >
struct Y {};
}
namespace gaga {
struct Z : public Y< X<int> > {};
}
int main()
{
gaga::Z z;
return 0;
}
(which I didn't bother trying to simplify further) causes
some build of GCC 4.1.2 to emit the following warning:
'gaga::Z' has a base '<unnamed>::Y<<unnamed>::X<int> >' whose type uses the anonymous namespace
Has anyone out there any idea what GCC ist trying to tell
us?
Schobi
--
(e-mail address removed) is never read
I'm HSchober at gmx dot de
"If there were some arcane way to remove the heads of every
newsgroup troll on the planet, I think it would elevate
humans to a whole new level of intelligence."
Rocky Frisco
this piece of code
namespace {
template< typename T >
struct X {};
template< typename T >
struct Y {};
}
namespace gaga {
struct Z : public Y< X<int> > {};
}
int main()
{
gaga::Z z;
return 0;
}
(which I didn't bother trying to simplify further) causes
some build of GCC 4.1.2 to emit the following warning:
'gaga::Z' has a base '<unnamed>::Y<<unnamed>::X<int> >' whose type uses the anonymous namespace
Has anyone out there any idea what GCC ist trying to tell
us?
Schobi
--
(e-mail address removed) is never read
I'm HSchober at gmx dot de
"If there were some arcane way to remove the heads of every
newsgroup troll on the planet, I think it would elevate
humans to a whole new level of intelligence."
Rocky Frisco