From 7cdfa7454d83c08c359ea1c792cfeb0dc1d17230 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 7 Aug 2009 17:44:57 +0000 Subject: [PATCH] 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 --- deal.II/base/include/base/std_cxx1x/shared_ptr.h | 14 -------------- 1 file changed, 14 deletions(-) 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 -- 2.39.5