
6 Jun
2007
6 Jun
'07
8:36 p.m.
On 06/06/07, Bill Buklis <boostuser@pbjzone.com> wrote:
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.