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 --- xsd/cxx/parser/element-validation-source.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xsd/cxx/parser/element-validation-source.cxx') diff --git a/xsd/cxx/parser/element-validation-source.cxx b/xsd/cxx/parser/element-validation-source.cxx index 310ea27..1bc506a 100644 --- a/xsd/cxx/parser/element-validation-source.cxx +++ b/xsd/cxx/parser/element-validation-source.cxx @@ -314,7 +314,7 @@ namespace CXX // compilers (e.g., IBM xlC that needs an lvalue to pass // std::auto_ptr). // - if (options.std () == cxx_version::cxx98) + if (std == cxx_version::cxx98) os << arg_type (type) << " tmp (" << inst << "->" << post << " ());" << "this->" << name << " (tmp);"; -- cgit v1.1