]> https://gitweb.dealii.org/ - dealii.git/commit
Bugfix: Allow compilation in C++98 mode
authorMatthias Maier <tamiko@43-1.org>
Sat, 12 Sep 2015 23:47:11 +0000 (18:47 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sat, 12 Sep 2015 23:58:16 +0000 (18:58 -0500)
commitf61b1485f9d54066349239c83361db231f13c42e
treea91606337710901aee5806c0c2551026df87cd43
parent47c67420a1b0960b74b8220e4f904b957448b55f
Bugfix: Allow compilation in C++98 mode

The boost variant boost::enable_if_c cannot be used to prevent the compiler
from trying to form Tensor<rank, dim, Number> objects with negative rank -
this results in an infinite template substitution and subsequent failure.

But we can use the tensor class itself as cheap "enable_if" mechanism -
just specialize Tensor<-1, dim> and Tensor<-2, dim> such that they do not
contain the necessary overloads.
include/deal.II/base/tensor.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.