From: Wolfgang Bangerth Date: Fri, 7 Aug 2009 17:44:57 +0000 (+0000) Subject: Revert to previous version -- scoped_ptr is not copyable, but I misread X-Git-Tag: v8.0.0~7368 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cdfa7454d83c08c359ea1c792cfeb0dc1d17230;p=dealii.git Revert to previous version -- scoped_ptr is not copyable, but I misread unique_ptr: it is actually supposed to be copyable. git-svn-id: https://svn.dealii.org/trunk@19200 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/std_cxx1x/shared_ptr.h b/deal.II/base/include/base/std_cxx1x/shared_ptr.h index ad5aaf4947..d2ba164292 100644 --- a/deal.II/base/include/base/std_cxx1x/shared_ptr.h +++ b/deal.II/base/include/base/std_cxx1x/shared_ptr.h @@ -23,26 +23,12 @@ #else #include -#include DEAL_II_NAMESPACE_OPEN namespace std_cxx1x { using boost::shared_ptr; using boost::enable_shared_from_this; - - // boost doesn't have boost::unique_ptr, - // but its scoped_ptr comes close so - // re-implement unique_ptr using scoped_ptr - template class unique_ptr : public boost::scoped_ptr - { - public: - explicit unique_ptr(T * p = 0) - : - boost::scoped_ptr (p) - {} - }; - } DEAL_II_NAMESPACE_CLOSE