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: r675315 - /stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp
Date Thu, 10 Jul 2008 03:34:55 GMT
elemings@apache.org wrote:
> Author: elemings
> Date: Wed Jul  9 12:16:56 2008
> New Revision: 675315
> 
> URL: http://svn.apache.org/viewvc?rev=675315&view=rev
> Log:
> 2008-07-09  Eric Lemings <eric.lemings@roguewave.com>
> 
> 	STDCXX-550
> 	* tests/utilities/20.operators.cpp (test_random_access_iterator):
> 	Oops.  Should be `!defined' in #if directive.
> 
> 
> Modified:
>     stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp
> 
> Modified: stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp
> URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp?rev=675315&r1=675314&r2=675315&view=diff
> ==============================================================================
> --- stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp (original)
> +++ stdcxx/branches/4.2.x/tests/utilities/20.operators.cpp Wed Jul  9 12:16:56 2008
> @@ -397,7 +397,7 @@
>  
>      typedef RandomAccessIterator I;
>  
> -#if defined _RWSTD_NO_DEBUG_ITER
> +#if !defined _RWSTD_NO_DEBUG_ITER
>      RandomNumberGenerator<typename I::difference_type> rndgen;

This won't compile when RandomAccessIterator is a plain pointer,
which both string::iterator and vector::iterator happen to be
when _RWSTD_NO_DEBUG_ITER is #defined (i.e., with optimization).

Martin


Mime
View raw message