> Why is this ugly? std::string is really the name of the class.

No question, but I would prefer

  struct xxx {
    using std:string;

    string foo;
    string bar;
    string baz;
  }
}

to

  struct xxx {
    std::string foo;
    std::string bar;
    std::string baz;
  }

for example, to increase legibility if there are many strings.

https://codereview.appspot.com/579240043/

Reply via email to