O'Reilly logo
  • Li Zheng thinks this is interesting:

char&                                             // operator[] for
 operator[](const std::size_t position) const      // non-const objects

From

Cover of Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition

Note

Typo: remove const for the second function