Skip to content

Deprecate the DUNE_ASSERT_AND_RETURN macro

Simon Praetorius requested to merge issue/deprecate-assert-and-return into master

Summary

The macro DUNE_ASSERT_AND_RETURN was introduced due to a shortcoming in some old compilers to allow assert() directly in constexpr functions. This is valid since c++14 and all minimal required compiler versions support this. So, the macro DUNE_ASSERT_AND_RETURN is useless and even leads to issues with static code analyzers. It should not be used anymore!

Note

There is still a test for this macro. Thus, when compiling the testsuite there will be a warning raised.

  • Fix warning in testsuite
Edited by Simon Praetorius

Merge request reports