You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/13 01:56:50 UTC

svn commit: r575132 - /incubator/stdcxx/trunk/tests/regress/24.operations.stdcxx-234.cpp

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  <vi...@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 ()
 {