stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r575132 - /incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp
Date Wed, 12 Sep 2007 23:56:50 GMT
Author: sebor
Date: Wed Sep 12 16:56:50 2007
New Revision: 575132

URL: http://svn.apache.org/viewvc?rev=575132&view=rev
Log:
2007-09-12  Travis Vitek  <vitek@roguewave.com>

	* 24.operations.stdcxx-234.cpp: change to get regression
	test to correctly compile on gcc and msvc.

Modified:
    incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp

Modified: incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp?rev=575132&r1=575131&r2=575132&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp (original)
+++ incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp Wed Sep 12 16:56:50
2007
@@ -31,11 +31,15 @@
 
 struct X: std::iterator<std::random_access_iterator_tag, int> { };
 
+namespace std {
+
 // specialize the std::distance() function template of a user-defined
 // iterator type to verify that the signature of the primary template
 // is the same as the one of the specialization
 template <> std::iterator_traits<X>::difference_type
-std::distance (X, X) { return 0; }
+distance<X> (X, X) { return 0; }
+
+} // namespace std
 
 int main ()
 {



Mime
View raw message