Why doesn’t my template accept an initializer list
A “thing” like {1,2,3} does not qualify as an expression. It has no type. Therefore, no type deduction is done. But C++0x makes an explicit exception for ‘auto’, so auto x = {1,2,3}; actually works and decltype(x) will be initializer_list<int>. But this is a special rule that only applies to auto. I guess they wanted … Read more