} \
void set##proper(int proper) { \
try { \
- xmltooling::xstring buf = boost::lexical_cast<xmltooling::xstring>(proper); \
- set##proper(buf.c_str()); \
+ std::string buf(boost::lexical_cast<std::string>(proper)); \
+ xmltooling::auto_ptr_XMLCh widen(buf.c_str()); \
+ set##proper(widen.get()); \
} \
catch (boost::bad_lexical_cast&) { \
} \
XMLTOOLING_DOXYGEN(Sets proper.) \
void set##proper(int proper) { \
try { \
- xmltooling::xstring buf = boost::lexical_cast<xmltooling::xstring>(proper); \
- setTextContent(buf.c_str()); \
+ std::string buf(boost::lexical_cast<std::string>(proper)); \
+ xmltooling::auto_ptr_XMLCh widen(buf.c_str()); \
+ setTextContent(widen.get()); \
} \
catch (boost::bad_lexical_cast&) { \
} \
for_each(
catpaths.begin(), catpaths.end(),
// Call loadCatalog with an inner call to s->c_str() on each entry.
- boost::bind(static_cast<bool (ParserPool::*)(const char*)>(&ParserPool::loadCatalog),
- boost::ref(this), boost::bind(&string::c_str, _1))
+ boost::bind(static_cast<bool (ParserPool::*)(const char*)>(&ParserPool::loadCatalog), this, boost::bind(&string::c_str, _1))
);
return catpaths.begin() != catpaths.end();
}