From fb123f93f9f5ce42c8e5785d2f8e0edaf951740e Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 26 Mar 2014 19:21:20 +0000 Subject: Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2. --- .../boost/exception/detail/error_info_impl.hpp | 61 ---- .../exception/detail/is_output_streamable.hpp | 38 -- .../boost/exception/detail/object_hex_dump.hpp | 40 --- .../boost/exception/detail/type_info.hpp | 130 ------- .../boost/exception/diagnostic_information.hpp | 64 ---- .../boost/exception/enable_current_exception.hpp | 6 - .../boost/exception/enable_error_info.hpp | 6 - .../boost-1.37.0/boost/exception/error_info.hpp | 6 - .../boost-1.37.0/boost/exception/exception.hpp | 396 --------------------- .../boost/exception/get_error_info.hpp | 134 ------- src/libs/boost-1.37.0/boost/exception/info.hpp | 151 -------- .../boost-1.37.0/boost/exception/info_tuple.hpp | 67 ---- .../boost-1.37.0/boost/exception/to_string.hpp | 74 ---- .../boost/exception/to_string_stub.hpp | 100 ------ 14 files changed, 1273 deletions(-) delete mode 100644 src/libs/boost-1.37.0/boost/exception/detail/error_info_impl.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/detail/is_output_streamable.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/detail/object_hex_dump.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/detail/type_info.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/diagnostic_information.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/enable_current_exception.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/enable_error_info.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/error_info.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/exception.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/get_error_info.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/info.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/info_tuple.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/to_string.hpp delete mode 100644 src/libs/boost-1.37.0/boost/exception/to_string_stub.hpp (limited to 'src/libs/boost-1.37.0/boost/exception') diff --git a/src/libs/boost-1.37.0/boost/exception/detail/error_info_impl.hpp b/src/libs/boost-1.37.0/boost/exception/detail/error_info_impl.hpp deleted file mode 100644 index 7a57b8bd..00000000 --- a/src/libs/boost-1.37.0/boost/exception/detail/error_info_impl.hpp +++ /dev/null @@ -1,61 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_CE6983AC753411DDA764247956D89593 -#define UUID_CE6983AC753411DDA764247956D89593 - -#include - -namespace -boost - { - namespace - exception_detail - { - class - error_info_base - { - public: - - virtual char const * tag_typeid_name() const = 0; - virtual std::string value_as_string() const = 0; - - protected: - - virtual - ~error_info_base() throw() - { - } - }; - } - - template - class - error_info: - public exception_detail::error_info_base - { - public: - - typedef T value_type; - - error_info( value_type const & value ); - ~error_info() throw(); - - value_type const & - value() const - { - return value_; - } - - private: - - char const * tag_typeid_name() const; - std::string value_as_string() const; - - value_type const value_; - }; - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/detail/is_output_streamable.hpp b/src/libs/boost-1.37.0/boost/exception/detail/is_output_streamable.hpp deleted file mode 100644 index 57376bf3..00000000 --- a/src/libs/boost-1.37.0/boost/exception/detail/is_output_streamable.hpp +++ /dev/null @@ -1,38 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_898984B4076411DD973EDFA055D89593 -#define UUID_898984B4076411DD973EDFA055D89593 - -#include - -namespace -boost - { - namespace - to_string_detail - { - template - char operator<<( std::basic_ostream &, T const & ); - - template - struct - is_output_streamable_impl - { - static std::basic_ostream & f(); - static T const & g(); - enum e { value=1!=(sizeof(f()< > - struct - is_output_streamable - { - enum e { value=to_string_detail::is_output_streamable_impl::value }; - }; - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/detail/object_hex_dump.hpp b/src/libs/boost-1.37.0/boost/exception/detail/object_hex_dump.hpp deleted file mode 100644 index a6221b6d..00000000 --- a/src/libs/boost-1.37.0/boost/exception/detail/object_hex_dump.hpp +++ /dev/null @@ -1,40 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_6F463AC838DF11DDA3E6909F56D89593 -#define UUID_6F463AC838DF11DDA3E6909F56D89593 - -#include -#include -#include -#include -#include - -namespace -boost - { - namespace - exception_detail - { - template - inline - std::string - object_hex_dump( T const & x, size_t max_size=16 ) - { - std::ostringstream s; - s << "type: " << type_name() << ", size: " << sizeof(T) << ", dump: "; - size_t n=sizeof(T)>max_size?max_size:sizeof(T); - s.fill('0'); - s.width(2); - unsigned char const * b=reinterpret_cast(&x); - s << std::setw(2) << std::hex << (unsigned int)*b; - for( unsigned char const * e=b+n; ++b!=e; ) - s << " " << std::setw(2) << std::hex << (unsigned int)*b; - return s.str(); - } - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/detail/type_info.hpp b/src/libs/boost-1.37.0/boost/exception/detail/type_info.hpp deleted file mode 100644 index 97bf7261..00000000 --- a/src/libs/boost-1.37.0/boost/exception/detail/type_info.hpp +++ /dev/null @@ -1,130 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_C3E1741C754311DDB2834CCA55D89593 -#define UUID_C3E1741C754311DDB2834CCA55D89593 - -#include -#include - -namespace -boost - { - template - inline - char const * - tag_type_name() - { -#ifdef BOOST_NO_TYPEID - return BOOST_CURRENT_FUNCTION; -#else - return typeid(T*).name(); -#endif - } - - template - inline - char const * - type_name() - { -#ifdef BOOST_NO_TYPEID - return BOOST_CURRENT_FUNCTION; -#else - return typeid(T).name(); -#endif - } - - namespace - exception_detail - { -#ifdef BOOST_NO_TYPEID - struct - type_info_ - { - detail::sp_typeinfo type_; - char const * name_; - - explicit - type_info_( detail::sp_typeinfo type, char const * name ): - type_(type), - name_(name) - { - } - - friend - bool - operator==( type_info_ const & a, type_info_ const & b ) - { - return a.type_==b.type_; - } - - friend - bool - operator<( type_info_ const & a, type_info_ const & b ) - { - return a.type_before(*b.type_)); - } - - char const * - name() const - { - return type_->name(); - } - }; -#endif - - inline - bool - operator!=( type_info_ const & a, type_info_ const & b ) - { - return !(a==b); - } - } - } - -#define BOOST_EXCEPTION_STATIC_TYPEID(T) ::boost::exception_detail::type_info_(BOOST_SP_TYPEID(T),::boost::tag_type_name()) - -#ifndef BOOST_NO_RTTI -#define BOOST_EXCEPTION_DYNAMIC_TYPEID(x) ::boost::exception_detail::type_info_(typeid(x)) -#endif - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/diagnostic_information.hpp b/src/libs/boost-1.37.0/boost/exception/diagnostic_information.hpp deleted file mode 100644 index 99273bcf..00000000 --- a/src/libs/boost-1.37.0/boost/exception/diagnostic_information.hpp +++ /dev/null @@ -1,64 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_0552D49838DD11DD90146B8956D89593 -#define UUID_0552D49838DD11DD90146B8956D89593 - -#include -#include -#include -#include - -namespace -boost - { - namespace - exception_detail - { - inline - char const * - get_diagnostic_information( exception const & x ) - { - if( error_info_container * c=x.data_.get() ) - try - { - return c->diagnostic_information(); - } - catch(...) - { - } - return 0; - } - } - - inline - std::string - diagnostic_information( exception const & x ) - { - std::ostringstream tmp; - if( boost::shared_ptr f=get_error_info(x) ) - { - tmp << *f; - if( boost::shared_ptr l=get_error_info(x) ) - tmp << '(' << *l << "): "; - } - tmp << "Throw in function "; - if( boost::shared_ptr fn=get_error_info(x) ) - tmp << *fn; - else - tmp << "(unknown)"; -#ifndef BOOST_NO_RTTI - tmp << "\nDynamic exception type: " << BOOST_EXCEPTION_DYNAMIC_TYPEID(x).name(); - if( std::exception const * e=dynamic_cast(&x) ) - tmp << "\nstd::exception::what: " << e->what(); -#endif - if( char const * s=exception_detail::get_diagnostic_information(x) ) - if( *s ) - tmp << '\n' << s; - return tmp.str(); - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/enable_current_exception.hpp b/src/libs/boost-1.37.0/boost/exception/enable_current_exception.hpp deleted file mode 100644 index 7e6403b8..00000000 --- a/src/libs/boost-1.37.0/boost/exception/enable_current_exception.hpp +++ /dev/null @@ -1,6 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#include diff --git a/src/libs/boost-1.37.0/boost/exception/enable_error_info.hpp b/src/libs/boost-1.37.0/boost/exception/enable_error_info.hpp deleted file mode 100644 index 7e6403b8..00000000 --- a/src/libs/boost-1.37.0/boost/exception/enable_error_info.hpp +++ /dev/null @@ -1,6 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#include diff --git a/src/libs/boost-1.37.0/boost/exception/error_info.hpp b/src/libs/boost-1.37.0/boost/exception/error_info.hpp deleted file mode 100644 index d80bf399..00000000 --- a/src/libs/boost-1.37.0/boost/exception/error_info.hpp +++ /dev/null @@ -1,6 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -namespace boost { template class error_info; } diff --git a/src/libs/boost-1.37.0/boost/exception/exception.hpp b/src/libs/boost-1.37.0/boost/exception/exception.hpp deleted file mode 100644 index 53e6ed0c..00000000 --- a/src/libs/boost-1.37.0/boost/exception/exception.hpp +++ /dev/null @@ -1,396 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_274DA366004E11DCB1DDFE2E56D89593 -#define UUID_274DA366004E11DCB1DDFE2E56D89593 - -namespace -boost - { - namespace - exception_detail - { - template - class - refcount_ptr - { - public: - - refcount_ptr(): - px_(0) - { - } - - ~refcount_ptr() - { - release(); - } - - refcount_ptr( refcount_ptr const & x ): - px_(x.px_) - { - add_ref(); - } - - refcount_ptr & - operator=( refcount_ptr const & x ) - { - adopt(x.px_); - return *this; - } - - void - adopt( T * px ) - { - release(); - px_=px; - add_ref(); - } - - T * - get() const - { - return px_; - } - - private: - - T * px_; - - void - add_ref() - { - if( px_ ) - px_->add_ref(); - } - - void - release() - { - if( px_ ) - px_->release(); - } - }; - } - - //////////////////////////////////////////////////////////////////////// - - template - class error_info; - - typedef error_info throw_function; - typedef error_info throw_file; - typedef error_info throw_line; - - template <> - class - error_info - { - public: - typedef char const * value_type; - value_type v_; - explicit - error_info( value_type v ): - v_(v) - { - } - }; - - template <> - class - error_info - { - public: - typedef char const * value_type; - value_type v_; - explicit - error_info( value_type v ): - v_(v) - { - } - }; - - template <> - class - error_info - { - public: - typedef int value_type; - value_type v_; - explicit - error_info( value_type v ): - v_(v) - { - } - }; - - template - E const & operator<<( E const &, error_info const & ); - - class exception; - - template - class shared_ptr; - - namespace - exception_detail - { - class error_info_base; - struct type_info_; - - struct - error_info_container - { - virtual char const * diagnostic_information() const = 0; - virtual shared_ptr get( type_info_ const & ) const = 0; - virtual void set( shared_ptr const &, type_info_ const & ) = 0; - virtual void add_ref() const = 0; - virtual void release() const = 0; - - protected: - - virtual - ~error_info_container() throw() - { - } - }; - - template - struct get_info; - - template <> - struct get_info; - - template <> - struct get_info; - - template <> - struct get_info; - - char const * get_diagnostic_information( exception const & ); - } - - class - exception - { - protected: - - exception(): - throw_function_(0), - throw_file_(0), - throw_line_(-1) - { - } - -#ifdef __HP_aCC - //On HP aCC, this protected copy constructor prevents throwing boost::exception. - //On all other platforms, the same effect is achieved by the pure virtual destructor. - exception( exception const & x ) throw(): - data_(x.data_), - throw_function_(x.throw_function_), - throw_file_(x.throw_file_), - throw_line_(x.throw_line_) - { - } -#endif - - virtual ~exception() throw() -#ifndef __HP_aCC - = 0 //Workaround for HP aCC, =0 incorrectly leads to link errors. -#endif - ; - - private: - - template - friend - E const & - operator<<( E const & x, throw_function const & y ) - { - x.throw_function_=y.v_; - return x; - } - - template - friend - E const & - operator<<( E const & x, throw_file const & y ) - { - x.throw_file_=y.v_; - return x; - } - - template - friend - E const & - operator<<( E const & x, throw_line const & y ) - { - x.throw_line_=y.v_; - return x; - } - - friend char const * exception_detail::get_diagnostic_information( exception const & ); - - template - friend E const & operator<<( E const &, error_info const & ); - - template - friend struct exception_detail::get_info; - friend struct exception_detail::get_info; - friend struct exception_detail::get_info; - friend struct exception_detail::get_info; - - mutable exception_detail::refcount_ptr data_; - mutable char const * throw_function_; - mutable char const * throw_file_; - mutable int throw_line_; - }; - - inline - exception:: - ~exception() throw() - { - } - - //////////////////////////////////////////////////////////////////////// - - namespace - exception_detail - { - template - struct - error_info_injector: - public T, - public exception - { - explicit - error_info_injector( T const & x ): - T(x) - { - } - - ~error_info_injector() throw() - { - } - }; - - struct large_size { char c[256]; }; - large_size dispatch( exception * ); - - struct small_size { }; - small_size dispatch( void * ); - - template - struct enable_error_info_helper; - - template - struct - enable_error_info_helper - { - typedef T type; - }; - - template - struct - enable_error_info_helper - { - typedef error_info_injector type; - }; - - template - struct - enable_error_info_return_type - { - typedef typename enable_error_info_helper::type type; - }; - } - - template - inline - typename - exception_detail::enable_error_info_return_type::type - enable_error_info( T const & x ) - { - typedef typename exception_detail::enable_error_info_return_type::type rt; - return rt(x); - } - - //////////////////////////////////////////////////////////////////////// - - namespace - exception_detail - { - class - clone_base - { - public: - - virtual clone_base const * clone() const = 0; - virtual void rethrow() const = 0; - - virtual - ~clone_base() throw() - { - } - }; - - inline - void - copy_boost_exception( exception * a, exception const * b ) - { - *a = *b; - } - - inline - void - copy_boost_exception( void *, void const * ) - { - } - - template - class - clone_impl: - public T, - public clone_base - { - public: - - explicit - clone_impl( T const & x ): - T(x) - { - copy_boost_exception(this,&x); - } - - ~clone_impl() throw() - { - } - - private: - - clone_base const * - clone() const - { - return new clone_impl(*this); - } - - void - rethrow() const - { - throw*this; - } - }; - } - - template - inline - exception_detail::clone_impl - enable_current_exception( T const & x ) - { - return exception_detail::clone_impl(x); - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/get_error_info.hpp b/src/libs/boost-1.37.0/boost/exception/get_error_info.hpp deleted file mode 100644 index e45d3d6e..00000000 --- a/src/libs/boost-1.37.0/boost/exception/get_error_info.hpp +++ /dev/null @@ -1,134 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_1A590226753311DD9E4CCF6156D89593 -#define UUID_1A590226753311DD9E4CCF6156D89593 - -#include -#include -#include -#include - -namespace -boost - { - namespace - exception_detail - { - struct - strwrap - { - std::string str; - char const * ptr; - - explicit - strwrap( char const * s ): - str(s), - ptr(&str[0]) - { - } - - private: - - strwrap( strwrap const & ); - strwrap & operator=( strwrap const & ); - }; - - template <> - struct - get_info - { - static - shared_ptr - get( exception const & x ) - { - if( x.throw_function_ && *x.throw_function_ ) - { - shared_ptr s(new strwrap(x.throw_function_)); - return shared_ptr(s,&s->ptr); - } - else - return shared_ptr(); - } - }; - - template <> - struct - get_info - { - static - shared_ptr - get( exception const & x ) - { - if( x.throw_file_ && *x.throw_file_ ) - { - shared_ptr s(new strwrap(x.throw_file_)); - return shared_ptr(s,&s->ptr); - } - else - return shared_ptr(); - } - }; - - template <> - struct - get_info - { - static - shared_ptr - get( exception const & x ) - { - if( x.throw_line_!=-1 ) - return boost::shared_ptr(new int(x.throw_line_)); - else - return shared_ptr(); - } - }; - - template - struct - get_info - { - static - shared_ptr - get( exception const & x ) - { - if( exception_detail::error_info_container * c=x.data_.get() ) - if( shared_ptr eib = c->get(BOOST_EXCEPTION_STATIC_TYPEID(ErrorInfo)) ) - { -#ifndef BOOST_NO_RTTI - BOOST_ASSERT( 0!=dynamic_cast(eib.get()) ); -#endif - ErrorInfo const * w = static_cast(eib.get()); - return shared_ptr(eib,&w->value()); - } - return shared_ptr(); - } - }; - } - -#ifdef BOOST_NO_RTTI - template - inline - shared_ptr - get_error_info( boost::exception const & x ) - { - return exception_detail::get_info::get(x); - } -#else - template - inline - shared_ptr - get_error_info( E const & some_exception ) - { - if( exception const * x = dynamic_cast(&some_exception) ) - return exception_detail::get_info::get(*x); - else - return shared_ptr(); - } -#endif - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/info.hpp b/src/libs/boost-1.37.0/boost/exception/info.hpp deleted file mode 100644 index a0892c9c..00000000 --- a/src/libs/boost-1.37.0/boost/exception/info.hpp +++ /dev/null @@ -1,151 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_8D22C4CA9CC811DCAA9133D256D89593 -#define UUID_8D22C4CA9CC811DCAA9133D256D89593 - -#include -#include -#include -#include -#include - -namespace -boost - { - template - inline - error_info:: - error_info( value_type const & value ): - value_(value) - { - } - - template - inline - error_info:: - ~error_info() throw() - { - } - - template - inline - char const * - error_info:: - tag_typeid_name() const - { - return tag_type_name(); - } - - template - inline - std::string - error_info:: - value_as_string() const - { - return to_string_stub(value_); - } - - namespace - exception_detail - { - class - error_info_container_impl: - public error_info_container - { - public: - - error_info_container_impl(): - count_(0) - { - } - - ~error_info_container_impl() throw() - { - } - - void - set( shared_ptr const & x, type_info_ const & typeid_ ) - { - BOOST_ASSERT(x); - info_[typeid_] = x; - diagnostic_info_str_.clear(); - } - - shared_ptr - get( type_info_ const & ti ) const - { - error_info_map::const_iterator i=info_.find(ti); - if( info_.end()!=i ) - { - shared_ptr const & p = i->second; -#ifndef BOOST_NO_RTTI - BOOST_ASSERT( BOOST_EXCEPTION_DYNAMIC_TYPEID(*p)==ti ); -#endif - return p; - } - return shared_ptr(); - } - - char const * - diagnostic_information() const - { - if( diagnostic_info_str_.empty() ) - { - std::string tmp; - for( error_info_map::const_iterator i=info_.begin(),end=info_.end(); i!=end; ++i ) - { - shared_ptr const & x = i->second; - tmp += '['; - tmp += x->tag_typeid_name(); - tmp += "] = "; - tmp += x->value_as_string(); - tmp += '\n'; - } - diagnostic_info_str_.swap(tmp); - } - return diagnostic_info_str_.c_str(); - } - - private: - - friend class boost::exception; - - typedef std::map< type_info_, shared_ptr > error_info_map; - error_info_map info_; - mutable std::string diagnostic_info_str_; - mutable int count_; - - void - add_ref() const - { - ++count_; - } - - void - release() const - { - if( !--count_ ) - delete this; - } - }; - } - - template - inline - E const & - operator<<( E const & x, error_info const & v ) - { - typedef error_info error_info_tag_t; - shared_ptr p( new error_info_tag_t(v) ); - exception_detail::error_info_container * c; - if( !(c=x.data_.get()) ) - x.data_.adopt(c=new exception_detail::error_info_container_impl); - c->set(p,BOOST_EXCEPTION_STATIC_TYPEID(error_info_tag_t)); - return x; - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/info_tuple.hpp b/src/libs/boost-1.37.0/boost/exception/info_tuple.hpp deleted file mode 100644 index 3c8197a7..00000000 --- a/src/libs/boost-1.37.0/boost/exception/info_tuple.hpp +++ /dev/null @@ -1,67 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_63EE924290FB11DC87BB856555D89593 -#define UUID_63EE924290FB11DC87BB856555D89593 - -#include -#include - -namespace -boost - { - template < - class E, - class Tag1,class T1, - class Tag2,class T2 > - inline - E const & - operator<<( - E const & x, - tuple< - error_info, - error_info > const & v ) - { - return x << v.template get<0>() << v.template get<1>(); - } - - template < - class E, - class Tag1,class T1, - class Tag2,class T2, - class Tag3,class T3 > - inline - E const & - operator<<( - E const & x, - tuple< - error_info, - error_info, - error_info > const & v ) - { - return x << v.template get<0>() << v.template get<1>() << v.template get<2>(); - } - - template < - class E, - class Tag1,class T1, - class Tag2,class T2, - class Tag3,class T3, - class Tag4,class T4 > - inline - E const & - operator<<( - E const & x, - tuple< - error_info, - error_info, - error_info, - error_info > const & v ) - { - return x << v.template get<0>() << v.template get<1>() << v.template get<2>() << v.template get<3>(); - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/to_string.hpp b/src/libs/boost-1.37.0/boost/exception/to_string.hpp deleted file mode 100644 index e10cbfde..00000000 --- a/src/libs/boost-1.37.0/boost/exception/to_string.hpp +++ /dev/null @@ -1,74 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_7E48761AD92811DC9011477D56D89593 -#define UUID_7E48761AD92811DC9011477D56D89593 - -#include -#include -#include - -namespace -boost - { - namespace - to_string_detail - { - template - typename disable_if,char>::type to_string( T const & ); - - template - struct has_to_string_impl; - - template - struct - has_to_string_impl - { - enum e { value=1 }; - }; - - template - struct - has_to_string_impl - { - static T const & f(); - enum e { value=1!=sizeof(to_string(f())) }; - }; - } - - template - inline - typename enable_if,std::string>::type - to_string( T const & x ) - { - std::ostringstream out; - out << x; - return out.str(); - } - - template - struct - has_to_string - { - enum e { value=to_string_detail::has_to_string_impl::value>::value }; - }; - - template - inline - std::string - to_string( std::pair const & x ) - { - return std::string("(") + to_string(x.first) + ',' + to_string(x.second) + ')'; - } - - inline - std::string - to_string( std::exception const & x ) - { - return x.what(); - } - } - -#endif diff --git a/src/libs/boost-1.37.0/boost/exception/to_string_stub.hpp b/src/libs/boost-1.37.0/boost/exception/to_string_stub.hpp deleted file mode 100644 index 1cd08bbc..00000000 --- a/src/libs/boost-1.37.0/boost/exception/to_string_stub.hpp +++ /dev/null @@ -1,100 +0,0 @@ -//Copyright (c) 2006-2008 Emil Dotchevski and Reverge Studios, Inc. - -//Distributed under the Boost Software License, Version 1.0. (See accompanying -//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef UUID_E788439ED9F011DCB181F25B55D89593 -#define UUID_E788439ED9F011DCB181F25B55D89593 - -#include -#include -#include - -namespace -boost - { - namespace - exception_detail - { - template - struct - to_string_dispatcher - { - template - static - std::string - convert( T const & x, Stub ) - { - return to_string(x); - } - }; - - template <> - struct - to_string_dispatcher - { - template - static - std::string - convert( T const & x, Stub s ) - { - return s(x); - } - - template - static - std::string - convert( T const & x, std::string s ) - { - return s; - } - - template - static - std::string - convert( T const & x, char const * s ) - { - BOOST_ASSERT(s!=0); - return s; - } - }; - - namespace - to_string_dispatch - { - template - inline - std::string - dispatch( T const & x, Stub s ) - { - return to_string_dispatcher::value>::convert(x,s); - } - } - - template - inline - std::string - string_stub_dump( T const & x ) - { - return "[ " + exception_detail::object_hex_dump(x) + " ]"; - } - } - - template - inline - std::string - to_string_stub( T const & x ) - { - return exception_detail::to_string_dispatch::dispatch(x,&exception_detail::string_stub_dump); - } - - template - inline - std::string - to_string_stub( T const & x, Stub s ) - { - return exception_detail::to_string_dispatch::dispatch(x,s); - } - } - -#endif -- cgit v1.2.1