Код: Выделить всё
list a={{3,10,1},{5,10,0}};
auto it=a.begin();
vector temp=*it; // This is acceptable
int t1 = *it[0]; // This is not acceptable
Подробнее здесь: https://stackoverflow.com/questions/787 ... rary-space
Код: Выделить всё
list a={{3,10,1},{5,10,0}};
auto it=a.begin();
vector temp=*it; // This is acceptable
int t1 = *it[0]; // This is not acceptable