#endif
#include <boost/locale/encoding.hpp>
+#include <boost/locale/hold_ptr.hpp>
#include <string>
#include <cstring>
char const *from_charset,
method_type how)
{
- std::auto_ptr<converter_between> cvt;
+ hold_ptr<converter_between> cvt;
#ifdef BOOST_LOCALE_WITH_ICONV
cvt.reset(new iconv_between());
if(cvt->open(to_charset,from_charset,how))
char const *charset,
method_type how)
{
- std::auto_ptr<converter_to_utf<CharType> > cvt;
+ hold_ptr<converter_to_utf<CharType> > cvt;
#ifdef BOOST_LOCALE_WITH_ICONV
cvt.reset(new iconv_to_utf<CharType>());
if(cvt->open(charset,how))
char const *charset,
method_type how)
{
- std::auto_ptr<converter_from_utf<CharType> > cvt;
+ hold_ptr<converter_from_utf<CharType> > cvt;
#ifdef BOOST_LOCALE_WITH_ICONV
cvt.reset(new iconv_from_utf<CharType>());
if(cvt->open(charset,how))