Re: visual c++ upgrading problem
Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/visual-c-upgrading-problem-tp3536p3550.html
On 01/24/05 17:49:04, Daniel J. Duffy wrote:
> Hi Luca, Luigi,
>
> > C++ most vexing parse :)
> I am not aware of this problem. 'vexing' is annoying, yes?
Yes. It came to be known as most annoying since it parses an "obvious"
variable declaration such as:
Foo foo(Bar());
as the declaration of a function taking a pointer to function, as if it
were declared as
Foo foo(Bar (*)());
I'm sure the C++ standard committee had a good reason for this, but it
escapes me :)
> Maybe theres is some standard workaround?
The one both you and I suggested---rewriting the above as:
Bar bar;
Foo foo(bar);
Later,
Luigi