> Something like this? Perhaps I could delay the conversion
> until I call the conversion operator?
Far more exotic than anything I bother with, but roughly yeah. I think
you're overestimating the need for all this in practice, but you know your
app better than me.
I also don't see where you're releasing the string with XMLString::release.
You have transcode calls in the destructor, it looks like.
> ~XCPtr() throw() { XS::transcode(x_ptr); }
I think you're intending to call XMLString::release there.
All I do is implement non-copyable smart pointers that transcode or
replicate an initial value depending on whether it's Unicode or ASCII.
That's all I ever needed. I'm not even willing to use them as input to the
DOM methods in place of literals, the runtime cost is just way more than I
want to pay.
-- Scott
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]