From 0fdf19714613a82a184f4f6e75fb9a4f9b62f18a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 19 Jan 2014 10:05:08 +0200 Subject: Use std::unique_ptr instead of std::auto_ptr in C++11 mode --- libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx') diff --git a/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx b/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx index 0df1c4f..09194e4 100644 --- a/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx +++ b/libxsd/xsd/cxx/parser/validating/xml-schema-pimpl.hxx @@ -8,6 +8,8 @@ #include +#include // XSD_AUTO_PTR + #include namespace xsd @@ -664,12 +666,12 @@ namespace xsd virtual void _post (); - virtual std::auto_ptr + virtual XSD_AUTO_PTR post_base64_binary (); protected: std::basic_string str_; - std::auto_ptr buf_; + XSD_AUTO_PTR buf_; }; // hexBinary @@ -686,12 +688,12 @@ namespace xsd virtual void _post (); - virtual std::auto_ptr + virtual XSD_AUTO_PTR post_hex_binary (); protected: std::basic_string str_; - std::auto_ptr buf_; + XSD_AUTO_PTR buf_; }; // gday -- cgit v1.1