|
From: Ferdinando A. <na...@am...> - 2007-07-09 19:35:50
|
On 7/2/07, Luigi Ballabio <lui...@gm...> wrote:
> > + void addFixings(const std::vector<Date>& dates,
> > + const std::vector<Real>& values);
> > template <class DateIterator, class ValueIterator>
> > void addFixings(DateIterator dBegin, DateIterator dEnd,
> > ValueIterator vBegin) {
>
> Did we really need it? We could use the method taking iterators.
the implementation of addFixings(const std::vector<Date>&, const
std::vector<Real>&) is actually just performing a size check and then
calls the iterator version.
I provided this a tiny wrapper because 99% of problems we've been
having with Indexes were about adding fixings using vectors of
different sizes, and in some instance such problems were hard to
detect (e.g. when values was shorter then dates)
ciao -- Nando
|