stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r545572 - /incubator/stdcxx/trunk/src/wctype.cpp
Date Fri, 08 Jun 2007 17:56:50 GMT
Author: sebor
Date: Fri Jun  8 10:56:49 2007
New Revision: 545572

URL: http://svn.apache.org/viewvc?view=rev&rev=545572
Log:
2007-06-08  Martin Sebor  <sebor@roguewave.com>

	* src/wctype.cpp (do_widen): Explicitly specified template argument
	list to work around HP aCC 3 and 5 bug resulting in Error 331: Illegal
	cast expression; cannot cast expression type '<no type>' to 'wchar_t'.
	See STDCXX-445.

Modified:
    incubator/stdcxx/trunk/src/wctype.cpp

Modified: incubator/stdcxx/trunk/src/wctype.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/wctype.cpp?view=diff&rev=545572&r1=545571&r2=545572
==============================================================================
--- incubator/stdcxx/trunk/src/wctype.cpp (original)
+++ incubator/stdcxx/trunk/src/wctype.cpp Fri Jun  8 10:56:49 2007
@@ -432,7 +432,9 @@
 ctype<wchar_t>::
 do_widen (char c) const
 {
-    return _RWSTD_CONST_CAST (ctype*, this)->
+    // explicitly specifying template argument list to work around
+    // HP aCC 3 and 5 bug (STDCXX-445)
+    return _RWSTD_CONST_CAST (ctype<wchar_t>*, this)->
         _C_wide_tab [_UChar (c)] = char_type (_UChar (c));
 }
 



Mime
View raw message