#include <iostream>
using namespace std;
template<class T>
class Test;
class Foo
{
public:
	Foo(){cout<<"Foo"<<endl;}
	~Foo(){cout<<"~Foo"<<endl;}
};
int main() {

	auto&& z = {1, 2, 3};
	z = {1, 2, 3};
	Test<decltype(z)> t;
	auto&& f = Foo();
	Test<decltype(f)> t2;
	
	return 0;
}