From: Matt L. <ml...@le...> - 2004-09-23 20:59:56
|
Does anyone object to the replacement of the cast_to_*() functions in vsol and vtol with dynamic_cast? I know this issue has come up before, and I think the decision was to allow RTTI outside of the "core". The problem we are having with the cast_to_*() functions is that each class must know about all of its subclasses. If we wish to add a new derived classes we must add a cast_to_*() function to the parent. This is a problem, for example, when we try to create a local library of classes that extend vsol. As a result, we might attempt to update vsol and vtol to use dynamic_cast unless anyone can see a reason why this would be a bad idea. Thanks, Matt Leotta |