Re: class member access operator (->) overloading
* SG:
On 12 Mai, 16:39, "Alf P. Steinbach" <al...@start.no> wrote:
SG didn't provide a reference
Right. I can't take credit for that (except for the attempt to use
exactly one class template instead of two with overloaded operator->()
to shorten the example). But I have no reference handy. I think I saw
it on someone's blog where the author used it for locking a mutex. I
probably wouldn't use it for locking, though.
but Bjarne once wrote a paper about exactly the
above technique.
So, let's also thank Bjarne Stroustrup.
Is it publicly available?
Bjarne Stroustrup: Generalizing Overloading for C++. Overload, Issue 25, April
1, 1998. Also, Chinese Translation. Programmer Magazine, April 1, 2002.
<url: http://www.research.att.com/~bs/wrapper.pdf>
It references
Michael Tiemann: "Wrappers:" Solving the RPC problem in GNU C++. Proceedings of
the USENIX C++ Conference, Denver, CO. October 1988.
Don't know what the April 1 publication dates mean, though.
Cheers,
- Alf (Google master)
--
Due to hosting requirements I need visits to <url: http://alfps.izfree.com/>.
No ads, and there is some C++ stuff! :-) Just going there is good. Linking
to it is even better! Thanks in advance!