stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r647262 - /stdcxx/trunk/tests/localization/22.locale.num.get.cpp
Date Tue, 06 May 2008 19:48:39 GMT
vitek@apache.org wrote:
> Author: vitek
> Date: Fri Apr 11 11:41:51 2008
> New Revision: 647262
> 
> URL: http://svn.apache.org/viewvc?rev=647262&view=rev
> Log:
> 
> 2008-04-11  Travis Vitek  <vitek@roguewave.com>
> 
> 	STDCXX-779
> 	* tests/localization/22.locale.num.get.cpp: Add new macro T_MAX to
> 	eliminate potential for accessing local variable via pointer after
> 	it has gone out of scope. Remove global pointer pmax.

Can we make the local variable static instead of all these
changes? (Global or local, we do want to keep the comment
about the purpose of pval).

> 	(do_test): Add new pointer parameter pmax.
> 	(test_flt_uflow): Use new T_MAX macro.
> 	(test_dbl_uflow): Ditto.
> 	(test_ldbl_uflow): Ditto.

Martin

Mime
View raw message