Skip to content
Snippets Groups Projects

Deprecate the DUNE_ASSERT_AND_RETURN macro

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading