Ticket #9228: boost_test_no_rtti.patch

File boost_test_no_rtti.patch, 1.5 KB (added by Antony Polukhin, 9 years ago)
  • trunk/boost/test/execution_monitor.hpp

     
    261261    template<typename ExceptionType>
    262262    void        erase_exception_translator( boost::type<ExceptionType>* = 0 )
    263263    {
    264         m_custom_translators = m_custom_translators->erase<ExceptionType>( m_custom_translators );
     264        m_custom_translators = m_custom_translators->template erase<ExceptionType>( m_custom_translators );
    265265    }
    266266
    267267private:
  • trunk/boost/test/tree/test_case_template.hpp

     
    3434#include <boost/type_traits/is_const.hpp>
    3535#include <boost/function/function0.hpp>
    3636
     37#ifndef BOOST_NO_RTTI
     38#include <typeinfo> // for typeid
     39#else
     40#include <boost/current_function.hpp>
     41#endif
     42
    3743// STL
    38 #include <typeinfo> // for typeid
    3944#include <string>   // for std::string
    4045#include <list>     // for std::list
    4146
     
    7782        std::string full_name;
    7883        assign_op( full_name, m_test_case_name, 0 );
    7984        full_name += '<';
     85#ifndef BOOST_NO_RTTI
    8086        full_name += typeid(TestType).name();
     87#else
     88        full_name += BOOST_CURRENT_FUNCTION;
     89#endif
    8190        if( boost::is_const<TestType>::value )
    8291            full_name += " const";
    8392        full_name += '>';