Hi alex I think a note should added that only copy initialisation work with default parameters because I got a compile time error when I tried uniform/direct initialisations.
1 2 3 4 5 |
void printValues(int x, int y{5}); //invalid void printValues(int x, int y(5)); //also not valid void printValues(int x, int y=5); //the only valid syntax |