[ quantlib-Bugs-533487 ] hard to invoke method McPricer::value()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-533487 ] hard to invoke method McPricer::value()

SourceForge.net
Bugs item #533487, was opened at 2002-03-22 09:25
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112740&aid=533487&group_id=12740

Category: None
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Ferdinando Ametrano (nando)
Summary: hard to invoke method McPricer::value()

Initial Comment:
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

----------------------------------------------------------------------

Comment By: Ferdinando Ametrano (nando)
Date: 2002-03-22 12:01

Message:
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

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=112740&aid=533487&group_id=12740