Login  Register

Re: Possible Time Series Bug

Posted by 因藤英城 on Aug 30, 2006; 3:46pm
URL: http://quantlib.414.s1.nabble.com/Possible-Time-Series-Bug-tp5005p5007.html

Hi, Marco.

I argee your opinion. Probabary it should be
 if (values_.find(d) == values._end())
    values_[d] = Null<T>();
 return values_[d];

> By the way, if I instantiate a TimeSeries object and then I use the [] operator,
> how does the object know which is implementation to choose?

Do you mean which method is invoked, when you call operator [](const
Date&) method?
I think operator [](const Date&) const method should be invoked,
if it is called from constness object, otherwise operator [](const Date&)
is invoked.

I'm afraid that this does not become answer for your question.

Thanks,
indou.


------
 Name:因藤 英城<Hideki Indou>
 mailto :[hidden email]