forked from boostorg/exception
Tests workarounds for CodeGear 2009. Thanks Nicola for all the CodeGear workarounds.
[SVN r48921]
This commit is contained in:
@ -7,8 +7,13 @@
|
|||||||
#include <boost/exception/get_error_info.hpp>
|
#include <boost/exception/get_error_info.hpp>
|
||||||
#include <boost/exception/info.hpp>
|
#include <boost/exception/info.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
struct my_tag {};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef boost::error_info<struct my_tag,int> my_info;
|
typedef boost::error_info<struct my_tag,int> my_info;
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
|
@ -6,6 +6,11 @@
|
|||||||
#include <boost/exception/diagnostic_information.hpp>
|
#include <boost/exception/diagnostic_information.hpp>
|
||||||
#include <boost/exception/info.hpp>
|
#include <boost/exception/info.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
struct test_tag {};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef boost::error_info<struct test_tag,int> tag_int;
|
typedef boost::error_info<struct test_tag,int> tag_int;
|
||||||
|
|
||||||
|
@ -6,8 +6,13 @@
|
|||||||
#include <boost/exception/get_error_info.hpp>
|
#include <boost/exception/get_error_info.hpp>
|
||||||
#include <boost/exception/info.hpp>
|
#include <boost/exception/info.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
struct tag_errno {};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef boost::error_info<struct tag_errno,int> info_errno;
|
typedef boost::error_info<struct tag_errno,int> info_errno;
|
||||||
|
|
||||||
class
|
class
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
#include <boost/exception/get_error_info.hpp>
|
#include <boost/exception/get_error_info.hpp>
|
||||||
#include <boost/exception/info_tuple.hpp>
|
#include <boost/exception/info_tuple.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
struct throws_on_copy;
|
struct throws_on_copy;
|
||||||
struct non_printable { };
|
struct non_printable { };
|
||||||
@ -34,6 +35,16 @@ user_data
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
struct tag_test_1 {};
|
||||||
|
struct tag_test_2 {};
|
||||||
|
struct tag_test_3 {};
|
||||||
|
struct tag_test_4 {};
|
||||||
|
struct tag_test_5 {};
|
||||||
|
struct tag_test_6 {};
|
||||||
|
struct tag_user_data {};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef boost::error_info<struct tag_test_1,int> test_1;
|
typedef boost::error_info<struct tag_test_1,int> test_1;
|
||||||
typedef boost::error_info<struct tag_test_2,unsigned int> test_2;
|
typedef boost::error_info<struct tag_test_2,unsigned int> test_2;
|
||||||
typedef boost::error_info<struct tag_test_3,float> test_3;
|
typedef boost::error_info<struct tag_test_3,float> test_3;
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
#include <boost/exception/get_error_info.hpp>
|
#include <boost/exception/get_error_info.hpp>
|
||||||
#include <boost/exception/info.hpp>
|
#include <boost/exception/info.hpp>
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
|
#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
|
||||||
|
struct tag_test {};
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef boost::error_info<struct tag_test,int> test;
|
typedef boost::error_info<struct tag_test,int> test;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user