#include <iostream>

template<typename T> 
void bar(T t){};
	
int main() {
	//foo's type would be deduced as std::initializer_list<int>
	auto foo = {0, 1, 2, 3}; 



	//compiles fine
	bar( foo );
	
	//next line gives compiler error
	foo({0, 1, 2, 3});
	
	return 0;
}