Typedef of a nested class
Is this the correct way to typedef an inner class in C++? 

	class Foo
	{
	public:
		struct A
		{
			typedef bool Type;
		};
		
		struct B
		{
			typedef int Type;
		};
		
		typedef struct Foo::nested;
	};

The code compiles but I'm not sure if means what I hope it means, or whether the standard permits it.


Typedef of a nested class
===

Is this the correct way to typedef an inner class in C++? 

	class Foo
	{
	public:
		struct A
		{
			typedef bool Type;
		};
		
		struct B
		{
			typedef int Type;
		};
		
		typedef struct Foo::nested;
	};

The code compiles but I'm not sure if means what I hope it means, or whether the standard permits it.

