Using std::wstring is not very portable, because wchar_t may not be the
same as XMLCh.  In fact, it will only be the same on a very few platforms.

Why not use std::basic_string<XMLCh> instead, if your compiler's standard
library has templated string classes?

That way, you're still guaranteed interoperability with Xerces-C APIs that
accept const XMLCh*.

Dave



|---------+--------------------------->
|         |           Sonny Falk      |
|         |           <[EMAIL PROTECTED]|
|         |           ess.com>        |
|         |                           |
|         |           03/24/2004 07:08|
|         |           AM              |
|         |           Please respond  |
|         |           to xerces-c-dev |
|---------+--------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                              |
  |        To:      "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>                          
                                          |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                               
                                                              |
  |        Subject: RE: Encapsulation of XMLCh* string                                 
                                                              |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|



>Is the only solution to use only XMLCh* string and lose the powerfull
using

>of std::string ?

Why don't you simply use std::wstring? That's what I use and it seems to
work just fine. Am I missing something?

-Sonny

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




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

Reply via email to