Re: unreferenced formal parameters in Commodity unitofmeasureconversion code

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/unreferenced-formal-parameters-in-Commodity-unitofmeasureconversion-code-tp12130p12133.html

On Thu, 2009-12-03 at 15:54 +0100, Luigi Ballabio wrote:

> On Thu, 2009-12-03 at 15:47 +0100, Ferdinando Ametrano wrote:
> > I've fixed what I think is a bug in UnitOfMeasureConversion and
> > consequently enabled some commented out code in
> > UnitOfMeasureConversionManager:
> > http://quantlib.svn.sourceforge.net/viewvc/quantlib?view=rev&revision=16858
> >
> > anyone using (or interested into) the commodity code please take a look at it
>
> Done. For the readability of the logic, I much preferred directLookup
> and smartLookup to lookupImpl(true) and lookupImpl(false).

...and from what I see, the smart lookup is still broken.
I'll give it a look later.

Luigi


--

Steinbach's Guideline for Systems Programming:
Never test for an error condition you don't know how to handle.



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev