stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r449774 - /incubator/stdcxx/trunk/util/scanner.cpp
Date Mon, 25 Sep 2006 18:53:02 GMT
Author: sebor
Date: Mon Sep 25 11:53:02 2006
New Revision: 449774

URL: http://svn.apache.org/viewvc?view=rev&rev=449774
Log:
2006-09-25  Martin Sebor  <sebor@roguewave.com>

	* scanner.cpp (convert_escape): Cast away constness to work around
	an MSVC 7.0 bug causing error C2446: '==' : no conversion from
	'char ** ' to 'const char ** ' Conversion loses qualifier.

Modified:
    incubator/stdcxx/trunk/util/scanner.cpp

Modified: incubator/stdcxx/trunk/util/scanner.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/util/scanner.cpp?view=diff&rev=449774&r1=449773&r2=449774
==============================================================================
--- incubator/stdcxx/trunk/util/scanner.cpp (original)
+++ incubator/stdcxx/trunk/util/scanner.cpp Mon Sep 25 11:53:02 2006
@@ -745,7 +745,10 @@
         if (pend)
             *pend = end;
 
-        if (!multi && pend == &end && **pend)
+        // cast away constness below to work around an MSVC 7.0 bug:
+        // causing error C2446: '==' : no conversion from 'char ** '
+        // to 'const char ** ' Conversion loses qualifiers
+        if (!multi && _RWSTD_CONST_CAST (char**, pend) == &end && **pend)
             issue_diag (E_SYNTAX, true, 0,
                         "%s constant expected: %s\n", basename, esc);
 



Mime
View raw message