#include #include using namespace std; template class wrapper { T t; public: wrapper(const T& initial_t = T()): t(initial_t) {} friend void outside(); }; void outside() { cout << wrapper().t << "\n"; cout << wrapper().t << "\n"; cout << wrapper().t << "\n"; } int main() { cout << boolalpha << fixed; outside(); return EXIT_SUCCESS; }