I'm wondering if we should add this template to our core utilities:
https://godbolt.org/z/4X-5wR .  We could use it to conduct a gradual
campaign of "creeping encapsulation", to pull up the pants of our many
classes with (often lots of) public data members.  If a class X had the
data member 'int xyz;', for example, you'd change it to 'ts:ROData<int, X>
xyz;' and compile. Read accesses of xyz would (I think) generally compile
fine, you'd only have to change the write accesses.

Reply via email to