X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fprint.h;h=47050dde90a75ddb4a687c552eb4bbf7ff0d67eb;hp=4a56da894780f0bfd27852d6d02e2530c9fbde7e;hb=7d2c44606a17c76f6bec520c22eba96fa5875961;hpb=0e22c5a63bb0f5792beba531d77944db18e3c191 diff --git a/ginac/print.h b/ginac/print.h index 4a56da89..47050dde 100644 --- a/ginac/print.h +++ b/ginac/print.h @@ -238,9 +238,9 @@ private: * implements the actual function call. */ class print_functor { public: - print_functor() : impl(0) {} + print_functor() : impl(nullptr) {} print_functor(const print_functor & other) : impl(other.impl.get() ? other.impl->duplicate() : 0) {} - print_functor(std::auto_ptr impl_) : impl(impl_) {} + print_functor(std::unique_ptr impl_) : impl(std::move(impl_)) {} template print_functor(void f(const T &, const C &, unsigned)) : impl(new print_ptrfun_handler(f)) {} @@ -265,7 +265,7 @@ public: bool is_valid() const { return impl.get(); } private: - std::auto_ptr impl; + std::unique_ptr impl; };