Re: visual c++ upgrading problem
Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/visual-c-upgrading-problem-tp3536p3548.html
On 01/24/05 16:54:43, Daniel J. Duffy wrote:
> Hi all,
> I am working in VS 2005 beta and I have the following remarks. Lets take
> the class FDMDiector with 2 constructors:
>
> FDMDirector();
> FDMDirector (const Mesher& mesher);
>
> TEST PROGRAM IS NOW
>
> int main()
> {
>
> using namespace BlackScholesOneFactorIBVP;
>
> sigma = mySigma;
>
> double d = (sigma)(1.0, 3.9);
>
> cout << d << endl;
>
> FDMDirector fdir;
>
> Vector<double, int> c = fdir.current();
>
> return 0;
>
> }
>
> NOW, here are some results:
>
> 1. If you create a default constructor everything is OK
> 2. If no default constructor but there is another one, then we get a
> compiler error
> 3. If there are no constructors then compiler generates one
Daniel,
I'm not sure I understand. What error are we talking about?
Later,
Luigi