I forget unsatisfying memories well. I clearly remember searching for a similar thing in the past, but I failed to remember the details. So I searched again.
After seeing the search results, I couldn't help but feel pain. It took a not short time to recover from the pain. I think my past self would have been similar to me now.
"Elegant solution to duplicate, const and non-const, getters?" [duplicate] https://stackoverflow.com/questions/856542/elegant-solution-to-duplicate-const-and-non-const-getters
I dislike this!