7 Jun
2007
7 Jun
'07
2:36 a.m.
On 06/06/07, Bill Buklis
How can this be done for non-pointer types? I'm thinking that in addition to a "get" type function which simply returns data, I could use operator* to return the underlying data for all types. Pointers dereference, while non-pointers return itself.
Of course, the real question is would this even be a good thing to do?
I don't really know what you're doing, but inconsistency is at the very least a code smell.