-3

I want to be able to do this in visual studio:

struct A
{
    int x;
};

struct B
{
    int y;
    struct A;
};

struct B b;
b.x //...

How can I do this? In gcc you use -fms-extensions to compile it

Erik W
  • 2,590
  • 4
  • 20
  • 33

1 Answers1

1

You just do it. MSVS supports this as an extension.

Lightness Races in Orbit
  • 378,754
  • 76
  • 643
  • 1,055