forked from boostorg/exception
Borland compatibility for enable_error_info.hpp,
Tabs removed from exception.hpp, Documentation rebound. [SVN r45273]
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -7,6 +7,7 @@
|
|||||||
#define UUID_0C5D492E909711DCB658AD4556D89593
|
#define UUID_0C5D492E909711DCB658AD4556D89593
|
||||||
|
|
||||||
#include <boost/exception/exception.hpp>
|
#include <boost/exception/exception.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
boost
|
boost
|
||||||
@ -54,12 +55,28 @@ boost
|
|||||||
typedef error_info_injector<T> type;
|
typedef error_info_injector<T> type;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__BORLANDC__,BOOST_TESTED_AT(0x582))
|
||||||
|
template <class T>
|
||||||
|
struct
|
||||||
|
sizeof_dispatch
|
||||||
|
{
|
||||||
|
enum e { value=sizeof(dispatch((T*)0)) };
|
||||||
|
};
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
struct
|
||||||
|
enable_error_info_return_type
|
||||||
|
{
|
||||||
|
typedef typename enable_error_info_helper<T,sizeof_dispatch<T>::value>::type type;
|
||||||
|
};
|
||||||
|
#else
|
||||||
template <class T>
|
template <class T>
|
||||||
struct
|
struct
|
||||||
enable_error_info_return_type
|
enable_error_info_return_type
|
||||||
{
|
{
|
||||||
typedef typename enable_error_info_helper<T,sizeof(dispatch((T*)0))>::type type;
|
typedef typename enable_error_info_helper<T,sizeof(dispatch((T*)0))>::type type;
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
Reference in New Issue
Block a user