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/processor.cxx | |
parent | fde4431ec608b467de6ab205e3f73848fe9efbdf (diff) |
Switch to C++11, get rid of auto_ptr use
Diffstat (limited to 'odb/processor.cxx')
-rw-r--r-- | odb/processor.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/processor.cxx b/odb/processor.cxx index 1e6557f..7c396e7 100644 --- a/odb/processor.cxx +++ b/odb/processor.cxx @@ -140,8 +140,8 @@ namespace // both the wrapper type and the wrapped type must be const. // To see why, consider these possibilities: // - // auto_ptr<const T> - can modify by setting a new pointer - // const auto_ptr<T> - can modify by changing the pointed-to value + // unique_ptr<const T> - can modify by setting a new pointer + // const unique_ptr<T> - can modify by changing the pointed-to value // if (const_member (m) && !(id (m) || version (m) || m.count ("inverse"))) { @@ -3148,7 +3148,7 @@ process1 (semantics::unit& u) static void process2 (options const& ops, features& f, semantics::unit& u) { - auto_ptr<context> ctx (create_context (cerr, u, ops, f, 0)); + unique_ptr<context> ctx (create_context (cerr, u, ops, f, 0)); // Common processing. // |