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.cxx | |
parent | fde4431ec608b467de6ab205e3f73848fe9efbdf (diff) |
Switch to C++11, get rid of auto_ptr use
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r-- | odb/parser.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index 00483cd..79a5bc2 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -26,7 +26,7 @@ public: impl (options const&, loc_pragmas&, ns_loc_pragmas&, decl_pragmas&); - auto_ptr<unit> + unique_ptr<unit> parse (tree global_scope, path const& main_file); private: @@ -750,10 +750,10 @@ impl (options const& ops, { } -auto_ptr<unit> parser::impl:: +unique_ptr<unit> parser::impl:: parse (tree global_scope, path const& main_file) { - auto_ptr<unit> u (new unit (main_file)); + unique_ptr<unit> u (new unit (main_file)); u->insert (global_namespace, *u); process_named_pragmas (global_namespace, *u); @@ -2265,6 +2265,12 @@ fq_scope (tree decl) // parser:: +~parser () +{ + // Needs parser::impl definition. +} + +parser:: parser (options const& ops, loc_pragmas& lp, ns_loc_pragmas& nslp, @@ -2273,7 +2279,7 @@ parser (options const& ops, { } -auto_ptr<unit> parser:: +unique_ptr<unit> parser:: parse (tree global_scope, path const& main_file) { return impl_->parse (global_scope, main_file); |