The following does not compile unless I put constexpr before initializer_list:
constexpr std::initializer_list<int> il = {
1, 2, 3, 4, 5, 6, 7, 8, 9, 10
};
std::array<int, il.size()> a;
But initializer_list size is constexpr:
constexpr size_type size() const;
constexpr std::initializer_list<int> li = {..};is valid in C++11; it will be in C++1y.