#include #include using namespace std; template class wrapper { const T t; public: wrapper(const T& initial_t): t(initial_t) {} void print() const {cout << t << "\n";} }; template inline void f(const wrapper& w) {w.print();} int main() { cout << sizeof (wrapper) << "\n"; wrapper w(3.14); f(w); f(wrapper('A')); return EXIT_SUCCESS; }