]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/locale/src/encoding/codepage.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / locale / src / encoding / codepage.cpp
index b15618c586fa33afbb672e35a7d1b191432b6c21..c19e36b8cffbf80b7150dffe1e15c5f7cf9a4a0d 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include <boost/locale/encoding.hpp>
+#include <boost/locale/hold_ptr.hpp>
 
 #include <string>
 #include <cstring>
@@ -39,7 +40,7 @@ namespace boost {
                                             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))
@@ -65,7 +66,7 @@ namespace boost {
                                         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))
@@ -91,7 +92,7 @@ namespace boost {
                                         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))