Quando cerco di impostare un array in questo modo

codice:
int num[4];
...
if (foobar == 1) num = { 0, 1, 2, 3 };
else num = { 4, 5, 6, 7 };
...
il compilatore mi segnala questo errore:

error: assigning to an array from an initializer list

Come devo fare per impostare correttamente il mio array?

Grazie in anticipo