
2 Oct
2007
2 Oct
'07
7:55 p.m.
Jeff Flinn wrote:
Nat Goodspeed wrote:
I believe this is essentially a double-dispatch problem, though you're using enum values rather than distinct subclass types. Scott Meyers talks about double dispatch (in More Effective C++? I don't have it with me). At that point he was advocating a map of target functions, keyed by type pairs.
I think that was "Modern C++ Design" by Alexandrescu.
He talks about it too. :-)