diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-07 10:37:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-07 10:37:53 +0200 |
commit | 6e374de9ae2f2978f2fca3390aba4ea3f72bfade (patch) | |
tree | a603c240f79494e0139445c20f63f32db04d5277 /odb/parser.hxx | |
parent | fde4431ec608b467de6ab205e3f73848fe9efbdf (diff) |
Switch to C++11, get rid of auto_ptr use
Diffstat (limited to 'odb/parser.hxx')
-rw-r--r-- | odb/parser.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 <odb/gcc.hxx> -#include <memory> // std::auto_ptr +#include <memory> // std::unique_ptr #include <odb/pragma.hxx> #include <odb/options.hxx> @@ -18,9 +18,10 @@ class parser public: class failed {}; + ~parser (); parser (options const&, loc_pragmas&, ns_loc_pragmas&, decl_pragmas&); - std::auto_ptr<semantics::unit> + std::unique_ptr<semantics::unit> parse (tree global_scope, semantics::path const& main_file); private: @@ -31,7 +32,7 @@ private: private: class impl; - std::auto_ptr<impl> impl_; + std::unique_ptr<impl> impl_; }; #endif // ODB_PARSER_HXX |