language: C++ 4.7.2 (gcc-4.7.2)
date: 319 days 11 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct Entry {
  int x;
  int y;
};
struct Indirect : public Entry { };
template<typename T> struct EntryOr : public T, Indirect { } ;
 
// From C code
struct A {
  int x;
}
 
int main()
{
  EntryOr<A> foo;
  foo.x = 5; // A::x
  foo.y = 7; // Entry::y
}