mirror of
https://github.com/boostorg/type_index.git
synced 2025-08-01 05:14:29 +02:00
New project structure to satisfy Modular Boost requirements.
This commit is contained in:
44
patched/boost_test_no_rtti.patch
Normal file
44
patched/boost_test_no_rtti.patch
Normal file
@@ -0,0 +1,44 @@
|
||||
Index: trunk/boost/test/execution_monitor.hpp
|
||||
===================================================================
|
||||
--- trunk/boost/test/execution_monitor.hpp (revision 86235)
|
||||
+++ trunk/boost/test/execution_monitor.hpp (working copy)
|
||||
@@ -261,7 +261,7 @@
|
||||
template<typename ExceptionType>
|
||||
void erase_exception_translator( boost::type<ExceptionType>* = 0 )
|
||||
{
|
||||
- m_custom_translators = m_custom_translators->erase<ExceptionType>( m_custom_translators );
|
||||
+ m_custom_translators = m_custom_translators->template erase<ExceptionType>( m_custom_translators );
|
||||
}
|
||||
|
||||
private:
|
||||
Index: trunk/boost/test/tree/test_case_template.hpp
|
||||
===================================================================
|
||||
--- trunk/boost/test/tree/test_case_template.hpp (revision 86235)
|
||||
+++ trunk/boost/test/tree/test_case_template.hpp (working copy)
|
||||
@@ -34,8 +34,13 @@
|
||||
#include <boost/type_traits/is_const.hpp>
|
||||
#include <boost/function/function0.hpp>
|
||||
|
||||
+#ifndef BOOST_NO_RTTI
|
||||
+#include <typeinfo> // for typeid
|
||||
+#else
|
||||
+#include <boost/current_function.hpp>
|
||||
+#endif
|
||||
+
|
||||
// STL
|
||||
-#include <typeinfo> // for typeid
|
||||
#include <string> // for std::string
|
||||
#include <list> // for std::list
|
||||
|
||||
@@ -77,7 +82,11 @@
|
||||
std::string full_name;
|
||||
assign_op( full_name, m_test_case_name, 0 );
|
||||
full_name += '<';
|
||||
+#ifndef BOOST_NO_RTTI
|
||||
full_name += typeid(TestType).name();
|
||||
+#else
|
||||
+ full_name += BOOST_CURRENT_FUNCTION;
|
||||
+#endif
|
||||
if( boost::is_const<TestType>::value )
|
||||
full_name += " const";
|
||||
full_name += '>';
|
Reference in New Issue
Block a user