On Tuesday 22 January 2008, Andy Ross wrote:
> till busch wrote:
> >   * f_interpolate in NasalSys was leaky (valgrind)
>
> This leak is real, but the patch isn't legal C++, at least as of the
> last time I read the standard. You can't initialize a stack array  
> with a dynamic value, it has to be known at compile time.
> This is a gcc extension.

of course you are right. when i did this it was like: "this won't work, but 
let's try it anyways". then it compiled and i thought: "wow, c++ is better 
than you expected."

but yes, c++ only allows const values to be used for stack array size.

sorry for posting nonsense.

> Better just to delete the arrays.  Fixed in CVS.

thanks for fixing and committing,

- till

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to