Ticket #9228: boost_test_no_rtti.patch
File boost_test_no_rtti.patch, 1.5 KB (added by , 9 years ago) |
---|
-
trunk/boost/test/execution_monitor.hpp
261 261 template<typename ExceptionType> 262 262 void erase_exception_translator( boost::type<ExceptionType>* = 0 ) 263 263 { 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 ); 265 265 } 266 266 267 267 private: -
trunk/boost/test/tree/test_case_template.hpp
34 34 #include <boost/type_traits/is_const.hpp> 35 35 #include <boost/function/function0.hpp> 36 36 37 #ifndef BOOST_NO_RTTI 38 #include <typeinfo> // for typeid 39 #else 40 #include <boost/current_function.hpp> 41 #endif 42 37 43 // STL 38 #include <typeinfo> // for typeid39 44 #include <string> // for std::string 40 45 #include <list> // for std::list 41 46 … … 77 82 std::string full_name; 78 83 assign_op( full_name, m_test_case_name, 0 ); 79 84 full_name += '<'; 85 #ifndef BOOST_NO_RTTI 80 86 full_name += typeid(TestType).name(); 87 #else 88 full_name += BOOST_CURRENT_FUNCTION; 89 #endif 81 90 if( boost::is_const<TestType>::value ) 82 91 full_name += " const"; 83 92 full_name += '>';