Re: visual c++ upgrading problem

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/visual-c-upgrading-problem-tp3536p3543.html

On 01/24/05 21:42:52, Daniel J. Duffy wrote:
> problem is in VS > 6.0 that you MUST define a default constructor. So if
> you
>
> generator(MersenneTwisterUniformRng() );
>
> compiler looks for DefCon and does not find it. I think that this was a
> problem too.

Daniel,
        this is strange, since MersenneTwister _does_ have a default  
constructor:

explicit MersenneTwisterUniformRng(unsigned long seed = 0);

Are you saying that in VS > 6, the following won't compile? May you try it?

----------------------------------------
#include <ql/quantlib.hpp>

using namespace QuantLib;

int main() {
        MersenneTwisterUniformRng twister;
        return 0;
}
----------------------------------------

Later,
        Luigi