You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When Catch2 (v2.5.0 tag) is used with CATCH_CONFIG_DISABLE_EXCEPTIONS define set, the single-file header will still refer to exception-handling specific functionality from the standard library.
Namely, in the ExceptionTranslatorRegistrar it directly references std::rethrow_exception and std::current_exception() which will make the library fail to compile when exceptions are disabled.
Steps to reproduce
Use v.2.5.0 library with exceptions disabled and CATCH_CONFIG_DISABLE_EXCEPTIONS define set.
Extra information
Catch version: v2.5.0
Operating System: none (bare-metal)
Compiler+version: IAR 8.11.3
The text was updated successfully, but these errors were encountered:
Interesting, all of our test builds on TravisCI passed (the ones with EXTRAS=1 build without exceptions and CATCH_CONFIG_DISABLE_EXCEPTIONS enabled, e.g. this one)
Can you try the dev-noexceptions-IAR branch? If you are using the single-include header, you will need to regenerate it first, using scripts/generateSingleHeader.
Description
When Catch2 (v2.5.0 tag) is used with
CATCH_CONFIG_DISABLE_EXCEPTIONS
define set, the single-file header will still refer to exception-handling specific functionality from the standard library.Namely, in the
ExceptionTranslatorRegistrar
it directly referencesstd::rethrow_exception
andstd::current_exception()
which will make the library fail to compile when exceptions are disabled.Steps to reproduce
CATCH_CONFIG_DISABLE_EXCEPTIONS
define set.Extra information
The text was updated successfully, but these errors were encountered: