-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 (3)

  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. Klaus Iglberger

    Hi Rob!

    I’m sorry to report that there has been no further update of Blaze. Given that I find the time to do another update, this issue is still on top of my list.

    Best regards,

    Klaus!

  3. Log in to comment