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=25622>.
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=25622

ValueHashTableOf only works if key is pointer to constant XMLCh string

           Summary: ValueHashTableOf only works if key is pointer to
                    constant XMLCh string
           Product: Xerces-C++
           Version: 2.4.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


ValueHashTableOf stores the value of the key internally, rather than the 
dereferenced key value HOWEVER the dereferenced key value is used to generate 
the hash.

This has the effect that ValueHashTableOf works for tables using constant XMLCh 
strings as keys, but cannot be used to produce a hash table with keys that are 
created dynamically (since the key strings would need to be managed externally 
to the ValueHashTableOf instance).

Is this a documentation issue (i.e. is this intentional behaviour / limitation 
of this template class - in which case why bother with void * as a type for the 
key value? - cf const XMLCh * const.

regards John Birch.

P.S. Please also post follow ups by email as I do not currently lurk in Apache 
lists :-)

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

Reply via email to