-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
  • 60,915
  • 9
  • 122
  • 205
Jan Swart
  • 6,137
  • 8
  • 32
  • 41

1 Answers1

0

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

erlc
  • 622
  • 1
  • 6
  • 11