Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: invalid conversion from 'const XMLCh* {aka const short unsigned int*}' to 'XMLCh* {aka short unsigned int*}' [-fpermissive]
- #define X(str) XStr(str).unicodeForm()
- ^
- ------------------------
- using namespace xercesc;
- using namespace std;
- class XStr
- {
- public :
- XStr(const char* const toTranscode)
- {
- // Call the private transcoding method
- fUnicodeForm = XMLString::transcode(toTranscode);
- }
- ~XStr()
- {
- XMLString::release(&fUnicodeForm);
- }
- const XMLCh* unicodeForm() const
- {
- return fUnicodeForm;
- }
- private :
- XMLCh* fUnicodeForm;
- };
- #define X(str) XStr(str).unicodeForm()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement