
6 Jul
2006
6 Jul
'06
10:06 p.m.
Thorsten Ottosen <thorsten.ottosen@dezide.com> writes:
Its operator() might as well be a virtual function. The fact that it's implemented differently is merely a matter of special-purpose optimization that wouldn't be worth the trouble for the vast majority of similar classes. I know that won't make an impression on you, because you don't seem to think there are many similar classes... but there are.
Where?
In the literature at the very least. Read the GoF book or look up the pimpl pattern. Other examples I know about (and have written) don't occur in code I can show you, unfortunately... but I wouldn't be surprised if you could find something similar in Spirit or XPressive. -- Dave Abrahams Boost Consulting www.boost-consulting.com