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/06/08 19:56:50 UTC

svn commit: r545572 - /incubator/stdcxx/trunk/src/wctype.cpp

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  <se...@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));
 }