Boost logo

Boost-Commit :

From: emil_at_[hidden]
Date: 2008-08-30 21:58:48


Author: emildotchevski
Date: 2008-08-30 21:58:48 EDT (Sat, 30 Aug 2008)
New Revision: 48483
URL: http://svn.boost.org/trac/boost/changeset/48483

Log:
removed explicit copy ctor in boost::exception
Text files modified:
   trunk/boost/exception/exception.hpp | 11 +++--------
   1 files changed, 3 insertions(+), 8 deletions(-)

Modified: trunk/boost/exception/exception.hpp
==============================================================================
--- trunk/boost/exception/exception.hpp (original)
+++ trunk/boost/exception/exception.hpp 2008-08-30 21:58:48 EDT (Sat, 30 Aug 2008)
@@ -14,7 +14,7 @@
     {
     class exception;
 
- template <class T>
+ template <class>
     class shared_ptr;
 
     namespace
@@ -56,11 +56,6 @@
             {
             }
 
- exception( exception const & e ):
- data_(e.data_)
- {
- }
-
         virtual ~exception() throw()=0;
 
         char const *
@@ -80,11 +75,11 @@
 
         private:
 
- friend void exception_detail::set_data( exception const *, shared_ptr<exception_detail::error_info_base const> const &, exception_detail::type_info_ const & );
-
         template <class ErrorInfo>
         friend shared_ptr<typename ErrorInfo::value_type const> exception_detail::get_data( exception const & );
 
+ friend void exception_detail::set_data( exception const *, shared_ptr<exception_detail::error_info_base const> const &, exception_detail::type_info_ const & );
+
         mutable exception_detail::refcount_ptr<exception_detail::error_info_container> data_;
         };
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk