int const&

This is a discussion on int const& within the C++ Programming forums, part of the General Programming Boards category; Hello everyone,
We always write const int other than int const, are they the same?
Example,
Code:
int const & ...

But after reading it, I do think think Bjarne has a preference (with reasons) why one form is better than the other form. Agree?

I'd logically have to agree, given that Bjarne opens that section with "I put it before, but that's a matter of taste." and then goes on to explain why he prefers it.

The basic rule of thumb with const (like volatile) is that it applies to the thing immediately on its left, unless it is on the left in which case it applies to the thing immediately on its right. According to that, your two examples are exactly equivalent.

I'd logically have to agree, given that Bjarne opens that section with "I put it before, but that's a matter of taste." and then goes on to explain why he prefers it.

The basic rule of thumb with const (like volatile) is that it applies to the thing immediately on its left, unless it is on the left in which case it applies to the thing immediately on its right. According to that, your two examples are exactly equivalent.