mercredi 13 juin 2018

Do we have auto array in c++17

auto numbers = {1, 2, 3, 4};    // numbers is an intializer_list<int>
auto num_array[] = {1, 2, 3, 4} // error -> declared as array of 'auto'

Why is this limitation in place?

Aucun commentaire:

Enregistrer un commentaire