From 6e374de9ae2f2978f2fca3390aba4ea3f72bfade Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Nov 2017 10:37:53 +0200 Subject: Switch to C++11, get rid of auto_ptr use --- odb/parser.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'odb/parser.hxx') diff --git a/odb/parser.hxx b/odb/parser.hxx index 97b138c..d8fd60f 100644 --- a/odb/parser.hxx +++ b/odb/parser.hxx @@ -7,7 +7,7 @@ #include -#include // std::auto_ptr +#include // std::unique_ptr #include #include @@ -18,9 +18,10 @@ class parser public: class failed {}; + ~parser (); parser (options const&, loc_pragmas&, ns_loc_pragmas&, decl_pragmas&); - std::auto_ptr + std::unique_ptr parse (tree global_scope, semantics::path const& main_file); private: @@ -31,7 +32,7 @@ private: private: class impl; - std::auto_ptr impl_; + std::unique_ptr impl_; }; #endif // ODB_PARSER_HXX -- cgit v1.1