language: C++ 4.7.2 (gcc-4.7.2)
date: 950 days 23 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
template <class T>
class Test
{
public:
 T &ref;
 Test(T &x)
  :ref(x)
 {}
};
 
int main()
{
  char c = 'c';
  Test<char> x(c);
  std::cout << sizeof (x.ref);
}