stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Farid Zaripov <far...@kyiv.vdiweb.com>
Subject [PATCH] 17.names.cpp
Date Wed, 21 Feb 2007 04:38:08 GMT
> Author: sebor
> Date: Mon Jan  1 17:34:56 2007
> New Revision: 491734
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=491734
> Log:
> 2007-01-01  Martin Sebor  <sebor@roguewave.com>
> 
> 	* 17.names.cpp: Added more public names to test for.
> 
> Modified:
>     incubator/stdcxx/trunk/tests/intro/17.names.cpp

  The test 17.names.cpp failed to compile under MSVC 7.1 in
valarray include file due to 'get_slice' and 'get_array' names
defined as '!ERROR!'.

  The proposed patch:
---------------
Index: 17.names.cpp
===================================================================
--- 17.names.cpp	(revision 509794)
+++ 17.names.cpp	(working copy)
@@ -655,10 +655,14 @@
 #include <utility>
 
 // assume <valarray> isn't #included by any other public header
-// `start' mandated by the standard
+// `start', `get_slice' and `get_array' mandated by the standard
 #undef start
+#undef get_slice
+#undef get_array
 #include <valarray>
 #define start                   !ERROR!
+#define get_slice               !ERROR!
+#define get_array               !ERROR!
 #include <vector>
 
 #ifndef _RWSTD_NO_NEW_HEADER
---------------

Farid.


Mime
View raw message