]> https://gitweb.dealii.org/ - dealii.git/commit
add new macro for static asserts 3861/head
authorKarl Ljungkvist <k.ljungkvist@gmail.com>
Fri, 27 Jan 2017 17:08:57 +0000 (18:08 +0100)
committerKarl Ljungkvist <k.ljungkvist@gmail.com>
Tue, 31 Jan 2017 13:19:34 +0000 (14:19 +0100)
commitc9283e795004308c570f356da95f97562f62d112
tree5efb73fa71b7562997b98788ab6b883b603f3e9d
parent8edb106c8966916e6ab35d0c0dc39538583d53c6
add new macro for static asserts

static_assert is only supported from C++11 and onwards, so we need to
guard the definition. Since this is a *declaration* rather than a
statement, it does not behave like other Assert* macros. We therefore
name it differently.
13 files changed:
include/deal.II/base/exceptions.h
include/deal.II/base/quadrature_point_data.h
include/deal.II/base/tensor_accessors.h
include/deal.II/dofs/dof_handler.h
include/deal.II/fe/fe.h
include/deal.II/grid/manifold.h
include/deal.II/grid/tria.h
include/deal.II/lac/block_linear_operator.h
include/deal.II/lac/block_vector_base.h
include/deal.II/lac/linear_operator.h
include/deal.II/lac/precondition.h
include/deal.II/lac/trilinos_block_sparse_matrix.h
include/deal.II/matrix_free/operators.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.