I'm trying to create a generic wrapper around a 2D vector, and so need to convert a std::initializer_list<std::initializer_list<T>> to a std::vector<std::vector<T>>. I already tried these three approaches:
vec = std::vector<std::vector<T>>{initList};
vec = std::vector{initList};
vec = initList;
But none of them work. Could someone please tell me what I could do to convert it efficiently?