-1

This might have been asked and might be a silly question, but what is the difference between these:

void f(int const& par);
void f(const int& par);
ildjarn
  • 62,044
  • 9
  • 127
  • 211
Jan Swart
  • 6,761
  • 10
  • 36
  • 45

1 Answers1

0

There is no difference, const is applied to the left unless it comes first, then it applies to the right.

erlc
  • 652
  • 1
  • 6
  • 11