Ticket #2343: libs_exception.patch

File libs_exception.patch, 3.1 KB (added by Nicola Musatti, 14 years ago)
  • test/cloning_test.cpp

     
    77#include <boost/exception/get_error_info.hpp>
    88#include <boost/exception/info.hpp>
    99#include <boost/detail/lightweight_test.hpp>
     10#include <boost/detail/workaround.hpp>
    1011#include <string>
    1112
     13#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
     14struct my_tag {};
     15#endif
     16
    1217typedef boost::error_info<struct my_tag,int> my_info;
    1318
    1419template <class T>
  • test/diagnostic_information_test.cpp

     
    66#include <boost/exception/diagnostic_information.hpp>
    77#include <boost/exception/info.hpp>
    88#include <boost/detail/lightweight_test.hpp>
     9#include <boost/detail/workaround.hpp>
    910
     11#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
     12struct test_tag {};
     13#endif
     14
    1015typedef boost::error_info<struct test_tag,int> tag_int;
    1116
    1217struct
  • test/errno_test.cpp

     
    66#include <boost/exception/get_error_info.hpp>
    77#include <boost/exception/info.hpp>
    88#include <boost/detail/lightweight_test.hpp>
     9#include <boost/detail/workaround.hpp>
    910#include <errno.h>
    1011
     12#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
     13struct tag_errno {};
     14#endif
     15
    1116typedef boost::error_info<struct tag_errno,int> info_errno;
    1217
    1318class
  • test/error_info_test.cpp

     
    66#include <boost/exception/get_error_info.hpp>
    77#include <boost/exception/info_tuple.hpp>
    88#include <boost/detail/lightweight_test.hpp>
     9#include <boost/detail/workaround.hpp>
    910
    1011struct throws_on_copy;
    1112struct non_printable { };
     
    3435        }
    3536    };
    3637
     38#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
     39struct tag_test_1 {};
     40struct tag_test_2 {};
     41struct tag_test_3 {};
     42struct tag_test_4 {};
     43struct tag_test_5 {};
     44struct tag_test_6 {};
     45struct tag_user_data {};
     46#endif
     47
    3748typedef boost::error_info<struct tag_test_1,int> test_1;
    3849typedef boost::error_info<struct tag_test_2,unsigned int> test_2;
    3950typedef boost::error_info<struct tag_test_3,float> test_3;
  • test/unknown_exception_test.cpp

     
    77#include <boost/exception/get_error_info.hpp>
    88#include <boost/exception/info.hpp>
    99#include <boost/detail/lightweight_test.hpp>
     10#include <boost/detail/workaround.hpp>
    1011
     12#if BOOST_WORKAROUND(__CODEGEARC__, BOOST_TESTED_AT(0x610))
     13struct tag_test {};
     14#endif
     15
    1116typedef boost::error_info<struct tag_test,int> test;
    1217
    1318struct