]> https://gitweb.dealii.org/ - dealii.git/commit
Deprecate filling TableIndices indices with invalid numbers.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 19:30:52 +0000 (13:30 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 10 Jul 2017 19:30:52 +0000 (13:30 -0600)
commitd94c64eb42e6f9c3e161f77518a125125a01ce9c
tree1c9782e0547ffb9b4348d08d8c952ed4a0844f51
parentf5b41febbbccdeb1d718930680aad0e093eb1684
Deprecate filling TableIndices indices with invalid numbers.

The TableIndices constructor would just take however many indices
it was given and padded the rest with invalid unsigned ints. This
is against the spirit we usually apply everywhere else by requiring
code to be explicit about what they want to happen. It also leads
to awkward to track issues such as the one reported in #4565.

Fix this by providing TableIndices with constructors for various
numbers of arguments, and ensuring via static_asserts that the
correct constructor is the only one that can be called.

This also required a bit of working around issues in the
SymmetricTensor accessor machinery, but nothing major.
include/deal.II/base/symmetric_tensor.h
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.