forked from boostorg/throw_exception
committed by
Peter Dimov
parent
0e7d54a2aa
commit
e78cf0ae7a
@ -133,6 +133,15 @@ boost
|
|||||||
template <class E,class Tag,class T>
|
template <class E,class Tag,class T>
|
||||||
E const & operator<<( E const &, error_info<Tag,T> const & );
|
E const & operator<<( E const &, error_info<Tag,T> const & );
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const & operator<<( E const &, throw_function const & );
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const & operator<<( E const &, throw_file const & );
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const & operator<<( E const &, throw_line const & );
|
||||||
|
|
||||||
class exception;
|
class exception;
|
||||||
|
|
||||||
template <class>
|
template <class>
|
||||||
@ -205,34 +214,19 @@ boost
|
|||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
|
|
||||||
|
#if defined(__MWERKS__) && __MWERKS__<=0x3207
|
||||||
|
public:
|
||||||
|
#else
|
||||||
private:
|
private:
|
||||||
|
|
||||||
template <class E>
|
template <class E>
|
||||||
friend
|
friend E const & operator<<( E const &, throw_function const & );
|
||||||
E const &
|
|
||||||
operator<<( E const & x, throw_function const & y )
|
|
||||||
{
|
|
||||||
x.throw_function_=y.v_;
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class E>
|
template <class E>
|
||||||
friend
|
friend E const & operator<<( E const &, throw_file const & );
|
||||||
E const &
|
|
||||||
operator<<( E const & x, throw_file const & y )
|
|
||||||
{
|
|
||||||
x.throw_file_=y.v_;
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class E>
|
template <class E>
|
||||||
friend
|
friend E const & operator<<( E const &, throw_line const & );
|
||||||
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 &, char const * );
|
friend char const * exception_detail::get_diagnostic_information( exception const &, char const * );
|
||||||
|
|
||||||
@ -244,7 +238,7 @@ boost
|
|||||||
friend struct exception_detail::get_info<throw_function>;
|
friend struct exception_detail::get_info<throw_function>;
|
||||||
friend struct exception_detail::get_info<throw_file>;
|
friend struct exception_detail::get_info<throw_file>;
|
||||||
friend struct exception_detail::get_info<throw_line>;
|
friend struct exception_detail::get_info<throw_line>;
|
||||||
|
#endif
|
||||||
mutable exception_detail::refcount_ptr<exception_detail::error_info_container> data_;
|
mutable exception_detail::refcount_ptr<exception_detail::error_info_container> data_;
|
||||||
mutable char const * throw_function_;
|
mutable char const * throw_function_;
|
||||||
mutable char const * throw_file_;
|
mutable char const * throw_file_;
|
||||||
@ -257,6 +251,30 @@ boost
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const &
|
||||||
|
operator<<( E const & x, throw_function const & y )
|
||||||
|
{
|
||||||
|
x.throw_function_=y.v_;
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const &
|
||||||
|
operator<<( E const & x, throw_file const & y )
|
||||||
|
{
|
||||||
|
x.throw_file_=y.v_;
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
template <class E>
|
||||||
|
E const &
|
||||||
|
operator<<( E const & x, throw_line const & y )
|
||||||
|
{
|
||||||
|
x.throw_line_=y.v_;
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <boost/exception/detail/attribute_noreturn.hpp>
|
#include <boost/exception/detail/attribute_noreturn.hpp>
|
||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x593) )
|
#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT(0x593) )
|
||||||
|
Reference in New Issue
Block a user