]> https://gitweb.dealii.org/ - dealii.git/commit
Convert an Assert into static_assert. 6060/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Mar 2018 04:21:39 +0000 (22:21 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 19 Mar 2018 04:21:39 +0000 (22:21 -0600)
commit0c718c221e2705b54988eecc7cc47df3b207b444
treedd39cdfa4f95d3b0e1d31c9a7d41cd05e022c042
parent94fdce2a3330095570afe6ddb47a68c16b0ad509
Convert an Assert into static_assert.

The TableIndices class had Assert statements in a couple of places
that the number of indices in question is a positive number, not zero.
Proximally, this led to Coverity complaining that a function called in a
noexcept function of Table may in fact throw an exception. The warning
is correct, and is most easily worked around by converting the
assertion into a static_assert -- which has to hold for the entire
class, so that's where I moved it from the affected member functions.
include/deal.II/base/table_indices.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.