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 under Visual Studio 2008 but I'm not sure if it is indeed a typedef of a nested class, or whether the standard permits it.