|
From: Luigi B. <lui...@gm...> - 2009-10-20 14:38:57
|
On Tue, 2009-10-20 at 07:16 -0700, Chris Kenyon wrote: > In fact why bother with Impl methods at all? Why not just make > volatility and variance virtual? PIMPL is handy when the implementers > can be changed (i.e. ptr to another class) but just calling another > method doesn't really seem to qualify. Just my musings. In this case it's not pimpl, it's Template Method. I guess it was written this way to mimic the other term structures, even if there's no added functionality in this case (there could be, though---e.g., in volatility() one could check the strike limits.) Luigi -- Lubarsky's Law of Cybernetic Entomology: There is _always_ one more bug. |