VA Assist X 10.2.1446.0
Visual Studio 2005 Team Ed for S/W Archs, us-en, 8.0.50727.42
The suggested auto-insert text for a C++ function parameter list is wrong if the function includes stack objects as default parameters.
Here's the function declaration in the .h file:
void addZoomSegment(double s, double e, const Ease& easeIn = Ease(), const Ease& easeOut = Ease());
};Ease is an object. The easeIn and easeOut parameters use default-constructor instances of the Ease object as their default vaules.
When you type the following into the .cpp file:
void Path::addZoomSegment(the suggestion in the tooltip is:
double s, double e, const Ease& easeIn /* = Ease */And if this suggestion is accepted exactly that code is inserted.
The "()" after the Ease initializer are missing. and the easeOut parameter is left out completely. Other subsequent parameters, if they existed, would also be missing.
The expected suggestion would be the following:
double s, double e, const Ease& easeIn /* = Ease() */, const Ease& easeOut /* = Ease() */Probable Cause
The code that tries to collect the rest of the parameters probably got confused by the "()" after the first Ease object. But I'll leave it you guys to figure out what's really wrong :-)
VA user since VS6
VA_X.dll file version 10.2.1446.0 built 2006.05.31
VA X: firstname.lastname@example.org (1-user license) Support ends 2006.06.27 (eek!)
VA.NET 7.1: email@example.com (1-user license)
VAOpsWin.dll version 184.108.40.206
VATE.dll version 220.127.116.11
DevEnv.exe version 8.0.50727.42
msenv.dll version 8.0.50727.42
Font: ProFontWindows 11(Pixels)
Comctl32.dll version 6.0.2900.2180
WindowsNT 5.1 Build 2600 Service Pack 2