by shortoncash · 6y ago · 0 comments
I like that C++ allows us to express this situation, even if it's a bit of an unusual design pattern.
And also note that binding to the object at all has been possible only after C++11, while this "feature" works with earlier standards. That rules out the possibility of this being designed into the language with the express goal of achieving what you say (it doesn't matter, but just pointing out).