Add a test for throw_with_location with RTTI off

This commit is contained in:
Peter Dimov
2022-02-15 00:59:05 +02:00
parent 8608fdd923
commit cffa8cd68c
2 changed files with 3 additions and 0 deletions

View File

@ -251,6 +251,7 @@ template<class E> boost::source_location get_throw_location( E const & e )
{ {
#if defined(BOOST_NO_RTTI) #if defined(BOOST_NO_RTTI)
(void)e;
return boost::source_location(); return boost::source_location();
#else #else

View File

@ -51,3 +51,5 @@ run throw_with_location_test2.cpp ;
run throw_with_location_test3.cpp ; run throw_with_location_test3.cpp ;
run throw_with_location_nx_test.cpp : : : <exception-handling>off ; run throw_with_location_nx_test.cpp : : : <exception-handling>off ;
run throw_with_location_test3.cpp : : : <rtti>off : throw_with_location_test3_nr ;