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/tree/stream-extraction.hxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libxsd/xsd/cxx/tree/stream-extraction.hxx') diff --git a/libxsd/xsd/cxx/tree/stream-extraction.hxx b/libxsd/xsd/cxx/tree/stream-extraction.hxx index eef60ca..e4a1740 100644 --- a/libxsd/xsd/cxx/tree/stream-extraction.hxx +++ b/libxsd/xsd/cxx/tree/stream-extraction.hxx @@ -67,8 +67,7 @@ namespace xsd while (size--) { - std::auto_ptr p (new T (s, f, c)); - this->push_back (p); + this->push_back (XSD_AUTO_PTR (new T (s, f, c))); } } } -- cgit v1.1