Skip to content

Draft: Make the DUNE_ASSERT_BOUND macro constexpr friendly

Simon Praetorius requested to merge issue/dune-assert-bounds-constexpr into master

Summary

This MR replaces the Dune::RangeError exception by std::out_of_range in the DUNE_ASSERT_BOUND macro. The reason is, that Dune::Exception is not usable in constexpr contexts. A consequence is that now a different type of exception is thrown from operator[] like methods in dune-common.

Merge request reports

Loading