diff --git a/include/boost/exception/exception.hpp b/include/boost/exception/exception.hpp index ec1bf1b..2180d50 100644 --- a/include/boost/exception/exception.hpp +++ b/include/boost/exception/exception.hpp @@ -12,79 +12,79 @@ namespace boost - { - template - class shared_ptr; + { + template + class shared_ptr; - namespace - exception_detail - { - class error_info_base; + namespace + exception_detail + { + class error_info_base; - struct - error_info_container: - public exception_detail::counted_base - { - virtual char const * what( std::type_info const & ) const = 0; - virtual shared_ptr get( std::type_info const & ) const = 0; - virtual void set( shared_ptr const & ) = 0; - }; - } + struct + error_info_container: + public exception_detail::counted_base + { + virtual char const * what( std::type_info const & ) const = 0; + virtual shared_ptr get( std::type_info const & ) const = 0; + virtual void set( shared_ptr const & ) = 0; + }; + } - template - class error_info; + template + class error_info; - template - E const & operator<<( E const &, error_info const & ); + template + E const & operator<<( E const &, error_info const & ); - template - shared_ptr get_error_info( E const & ); + template + shared_ptr get_error_info( E const & ); - class - exception - { - public: + class + exception + { + public: - virtual ~exception() throw()=0; - virtual char const * what() const throw(); + virtual ~exception() throw()=0; + virtual char const * what() const throw(); - private: + private: - shared_ptr get( std::type_info const & ) const; - void set( shared_ptr const & ) const; + shared_ptr get( std::type_info const & ) const; + void set( shared_ptr const & ) const; - template - friend E const & operator<<( E const &, error_info const & ); + template + friend E const & operator<<( E const &, error_info const & ); - template - friend shared_ptr get_error_info( E const & ); + template + friend shared_ptr get_error_info( E const & ); - intrusive_ptr mutable data_; - }; + intrusive_ptr mutable data_; + }; - inline - exception:: - ~exception() throw() - { - } + inline + exception:: + ~exception() throw() + { + } - inline - char const * - exception:: - what() const throw() - { - if( data_ ) - try - { - char const * w = data_->what(typeid(*this)); - BOOST_ASSERT(0!=w); - return w; - } - catch(...) - { - } - return typeid(*this).name(); - } - } + inline + char const * + exception:: + what() const throw() + { + if( data_ ) + try + { + char const * w = data_->what(typeid(*this)); + BOOST_ASSERT(0!=w); + return w; + } + catch(...) + { + } + return typeid(*this).name(); + } + } #endif