]> https://gitweb.dealii.org/ - dealii.git/commit
Mark some variables as constexpr. 11286/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 1 Dec 2020 02:47:01 +0000 (19:47 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 1 Dec 2020 02:47:26 +0000 (19:47 -0700)
commit48648a7736aeadb590128d5344927bcfa5b9803b
treea61562f8ef627f97018036a0d6a4a77236161151
parent09945101143eb3c4396f15bc0e9597b8d4c4f365
Mark some variables as constexpr.

These are global variables, and as such should not actually have been declared in
a header file without marking them as 'extern' and providing a definition in a .cc file.
If the compiler had not inlined the definitions of these variables, we would have
gotten duplicate symbol linker errors. C++11 provides us with a way around this:
mark these variables as 'constexpr', thereby avoiding the bug we currently have.
include/deal.II/base/std_cxx17/cmath.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.