-fexceptions required for Blaze

Issue #426 new
Rob Riggs created an issue

Work was done on issue #19 to make the error reporting system more flexible. This allows applications using Blaze to ensure exceptions are not thrown in Blaze code. However, it is still not possible to use Blaze with -fno-exceptions.

blaze/math/views/Submatrix.h:1964:4: error: exception handling disabled, use '-fexceptions' to enable
 1964 |    catch( ... ) {
      |    ^~~~~

I am trying to use Blaze on an embedded device with exceptions disabled. Is it reasonable to request that users be able to disable or override these catch statements? Once the exception mechanism from #19 has been used to prevent throwing exceptions, we know we do not need these catch statements.

The only catch statements required are those needed when invoking external code that throws exceptions.

Comments (1)

  1. Klaus Iglberger

    Hi Rob!

    Thanks a lot for pointing out this imperfection. I agree that it should be possible to compile with exceptions disabled. This issue is top on my list and I will address this as soon as possible. Thanks again,

    Best regards,

    Klaus!

  2. Log in to comment