Menu

#8 hard to invoke method McPricer::value()

closed-out-of-date
None
5
2002-03-22
2002-03-22
Anonymous
No

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

Discussion

  • Ferdinando Ametrano

    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

     
  • Ferdinando Ametrano

    • assigned_to: nobody --> nando
    • status: open --> closed-out-of-date
     

Log in to post a comment.