RE: visual c++ upgrading problem

Posted by cuchulainn on
URL: http://quantlib.414.s1.nabble.com/visual-c-upgrading-problem-tp3536p3537.html

Re: [Quantlib-users] visual c++ upgrading problem
Luigi,
It was Luca who had the problems with MT. I had constructor problems.


From: Luigi Ballabio [mailto:[hidden email]]
Sent: Tue 25/01/2005 11:43
To: Daniel J. Duffy
Cc: QuantLib users
Subject: Re: [Quantlib-users] visual c++ upgrading problem

On 01/25/05 10:25:28, Daniel J. Duffy wrote:
> Luigi,
> I am using 2005 beta, so maybe it is difernet. All I know is that if you
> do NOT implement a default constructor my own code does not work.

Well, if a class doesn't implement a default constructor, your own code 
cannot call it :)

> I have experienced sttange things when moving to versions > 6.

VC6 used to let you get away with illegal C++. VC7 and 8 don't.
Having said this, I wouldn't exclude that VC8 (being a beta) has issues.

However, I still don't have a clear picture of the problem. Is it the 
Mersenne twister (which _has_ a default constructor) that causes your code 
to fail? Or is some other class? What exactly is the offending line?

Later,
        Luigi