stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r643573 - /stdcxx/trunk/tests/localization/22.locale.messages.cpp
Date Tue, 01 Apr 2008 21:10:18 GMT
Author: vitek
Date: Tue Apr  1 14:10:14 2008
New Revision: 643573

URL: http://svn.apache.org/viewvc?rev=643573&view=rev
Log:

2008-04-01  Travis Vitek  <vitek@roguewave.com>

	STDCXX-742
	* tests/localization/22.locale.messages.cpp (run_test): Avoid
	use_facet<>() and has_facet<>() when _RWSTD_NO_DYNAMIC_CAST is
	defined.


Modified:
    stdcxx/trunk/tests/localization/22.locale.messages.cpp

Modified: stdcxx/trunk/tests/localization/22.locale.messages.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/localization/22.locale.messages.cpp?rev=643573&r1=643572&r2=643573&view=diff
==============================================================================
--- stdcxx/trunk/tests/localization/22.locale.messages.cpp (original)
+++ stdcxx/trunk/tests/localization/22.locale.messages.cpp Tue Apr  1 14:10:14 2008
@@ -827,6 +827,18 @@
     
 #endif    // _RWSTD_OS_AIX
 
+#ifdef _RWSTD_NO_DYNAMIC_CAST
+
+    // if dynamic_cast isn't supported then has_facet() can't
+    // reliably detect if a facet is installed or not.
+    rw_warn (0 != opt_has_facet, 0, __LINE__,
+             "dynamic_cast not supported, disabling has_facet tests");
+
+    opt_has_facet = -1;
+
+#endif    // _RWSTD_NO_DYNAMIC_CAST
+
+
     for (int i = 0; i < MAX_SETS; ++i) {
         for (int j = 0; j < MAX_MESSAGES; ++j)
             catalog.append (messages [i][j], std::strlen (messages [i][j]) + 1);



Mime
View raw message