Another possibility is for you to use a more modern STL, such as STLport.
Or, you can simply use std::vector instead of std::string. It doesn't give
you as much functionality as std::basic_string, but it's a start.
Xalan-C has a class called XalanDOMString that I wrote on top of
std::vector, because basic_string<> was rarely available back then. You
could always just steal that source code if you want.
Dave
|---------+--------------------------->
| | Sylvain Duval |
| | <[EMAIL PROTECTED]|
| | > |
| | |
| | 03/24/2004 08:24|
| | AM |
| | Please respond |
| | to xerces-c-dev |
|---------+--------------------------->
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc: (bcc: David N Bertoni/Cambridge/IBM)
|
| Subject: RE: Encapsulation of XMLCh* string
|
>--------------------------------------------------------------------------------------------------------------------------------------------------|
You are totally right and this is my problem.
wstring is not defined in gcc 2.95.3 ....
At 17:15 24/03/04 +0100, you wrote:
>At 16.05 24/03/2004 +0000, you wrote:
>>Hi,
>> XMLCh is defined to be different things on different platforms.
>>Can you be sure that it is always compatible with the wstring? There was
>>some discussion on this a while ago, I don't remember the conclusion.
>
>XMLCh should now be always 16 bits (unsigned short), unless you redefine
>it. The problem is that wchar_t on some platform is 32 bits. And another
>problem is that, in some STL implementations, std::wstring is not defined
>(maybe it was gcc 2.95, but I don't recall it at the moment).
>In the end, you can treat XMLCh as wchar_t and use it inside a CString or
>a std::wstring if you know that your platform allows it (for CString is
>easy, as it exists in just one platform)
>
>Alberto
>
>
>
>---------------------------------------------------------------------
>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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]