stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r668279 - /stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp
Date Mon, 16 Jun 2008 19:53:19 GMT
Author: vitek
Date: Mon Jun 16 12:53:19 2008
New Revision: 668279

URL: http://svn.apache.org/viewvc?rev=668279&view=rev
Log:
2006-06-16  Travis Vitek  <vitek@roguewave.com>

	STDCXX-926
	* tests/utilities/20.meta.trans.other.cpp (cond_if_char): Add
	typename to avoid compile error on gcc.


Modified:
    stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp

Modified: stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp?rev=668279&r1=668278&r2=668279&view=diff
==============================================================================
--- stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp (original)
+++ stdcxx/branches/4.3.x/tests/utilities/20.meta.trans.other.cpp Mon Jun 16 12:53:19 2008
@@ -77,7 +77,9 @@
 template <class T>
 int cond_if_char ()
 {
-    typedef std::conditional<is_char<T>::val, long, void>::type selector;
+    typedef typename
+    std::conditional<is_char<T>::val, long, void>::type selector;
+
     return _cond_if_char ((selector*)0);
 }
 



Mime
View raw message