You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2004/03/30 16:52:05 UTC

DO NOT REPLY [Bug 28048] New: - NameIdPoolEnumerator assigns to const pointer

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28048

NameIdPoolEnumerator assigns to const pointer

           Summary: NameIdPoolEnumerator assigns to const pointer
           Product: Xerces-C++
           Version: 2.5.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Utilities
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: Robert.Buck@mathworks.com


The NameIdPoolEnumerator has a const pointer to MemoryManager member. In the 
assignment operator overload, the pointer is assigned the member pointer of the 
rhs object. Most compilers are lenient; but ECC is a strictly conforming 
compiler that will not accept this coding error.

Please make member non-const, and remove cv-qualifier from argument list in 
constructor. This has been tested using ECC on IA64 with success.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org