It's not a real bug, but I think it should be better
to change the prototype of the methods value() of the
class McPricer because to call the method
McPricer::value(size_t samples)
you need to write
object_Mc_Pricer.value(size_t(100));
My compiler (the free Borland line compiler) tells me
that if I write
object_Mc_Pricer.value(100);
is ambiguos with McPricer::value(double, size_t);
thank you
Logged In: YES
user_id=34616
This have been already fixed in the CVS, so the next
release has (will have) two different methods:
//! add samples until the required tolerance is reached
double value(double tolerance,
Size maxSample = QL_MAX_INT) const;
//! simulate a fixed number of samples
double valueWithSamples(Size samples) const;
thank you
ciao -- Nando