class A { unsigned c; struct Segment { int begin, end; }; }; class B { unsigned d; struct Segment { int begin, end; }; };