Sample source code not compilable
---------------------------------

         Key: XERCESC-1449
         URL: http://issues.apache.org/jira/browse/XERCESC-1449
     Project: Xerces-C++
        Type: Bug
  Components: Documentation  
    Versions: 2.6.0    
 Environment: Win2000, MS VC++ 6.0
    Reporter: Leon Zandman
    Priority: Minor


In the DOM Programming Guide under "Memory Management" there's some sample code 
that I think is wrong. Here's a piece of the code that's in the documentation:

XMLCh* tempStr[100];
XMLString::transcode("Range", tempStr, 99);

The above doesn't compile on my machine. I think the "tempStr" array is 
declared incorrectly. It works when I use the following declaration:

XMLCh tempStr[100];

so without the asterisk (*), which actually makes more sense.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to