DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9639>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9639

enum_mem clashes with constant

           Summary: enum_mem clashes with constant
           Product: Xerces-C++
           Version: Nightly build (please specify the date)
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Build
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Compiler: MSVC5

Source: \xercesc\dom\DOMError.hpp
    enum ErrorSeverity
    {
        SEVERITY_WARNING     = 0,
        SEVERITY_ERROR       = 1,
        SEVERITY_FATAL_ERROR = 2
    };

Source: \DevStudio\VC\include\WINERROR.H
    #define SEVERITY_ERROR      1

Got the following error, when building the source, containing the includes like 
following:

#include <winerror.h>
#include <xercesc/dom/DOM.hpp>

\src\xercesc/dom/DOMError.hpp(103) : error C2059: syntax error : 'constant'
\src\xercesc/dom/DOMError.hpp(105) : error C2238: unexpected token(s) 
preceding ';'

Propose to define the severity enum smth. like the follows:
    enum ErrorSeverity
    {
        DOMSEVERITY_WARNING     = 0,
        DOMSEVERITY_ERROR       = 1,
        DOMSEVERITY_FATAL_ERROR = 2
    };

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to