> > namespace X
> > {
> > namespace Y
> > {
> > namespace Z
> > {
> > struct A { typedef int int_t; };
> > struct Z { typedef int int_t; }; } } }
> >
> > using namespace X::Y::Z;
> >
> > int
> > main()
> > {
> > Z::A::int_t i = 0;
> > Z::Z::int_t j = 0;
> > r
On 5/24/07, Ching, Jimen (US SSA) <[EMAIL PROTECTED]> wrote:
Hi,
I have the following code:
namespace X
{
namespace Y
{
namespace Z
{
struct A { typedef int int_t; };
struct Z { typedef int int_t; };
}
}
}
using namespace X::Y::Z;
int
main()
{
Z::A::int_t i = 0;
Hi,
I have the following code:
namespace X
{
namespace Y
{
namespace Z
{
struct A { typedef int int_t; };
struct Z { typedef int int_t; };
}
}
}
using namespace X::Y::Z;
int
main()
{
Z::A::int_t i = 0;
Z::Z::int_t j = 0;
return i == j;
}
I used the comma
Jhair Tocancipa Triana <[EMAIL PROTECTED]> writes:
| Consider the following snippet:
|
| --8<---cut here---start->8---
| namespace foo
| {
| class A
| {
| friend class B;
|
| void bar (B);
| };
|
| class B {};
| }
| --8<---cut here
Consider the following snippet:
--8<---cut here---start->8---
namespace foo
{
class A
{
friend class B;
void bar (B);
};
class B {};
}
--8<---cut here---end--->8---
This compiles fine with:
g++ (GCC) 3.3.3