July 2009 Archives

In my last post, I mentioned a problem (choosing between one of several templated classes based on information that won't be available until runtime) and also mentioned a workaround involving virtual dispatch, in which the templated class extends a non-templated class. This doesn't address all of the concerns I set out with regard to other solutions, but it is rather cleaner than any of them since it makes conditional dispatch implicit. Here's an example of this very simple workaround as applied to a trivial class:

virtual data room | data room solutions | online-essay-help.com