-
- Downloads
[c++11] add support for C++11 constexpr
As decided on the developer meeting in Aachen, we support (but do not rely on) the C++11 keyword constexpr. This patch adds an m4-check for constexpr and a header (cxx11.hh) defining a macro DUNE_CONSTEXPR either as constexpr or empty (depending on the compiler support for it). It is then used in FieldVector and FieldMatrix on size, rows, and cols.
Showing
- dune/common/CMakeLists.txt 1 addition, 0 deletionsdune/common/CMakeLists.txt
- dune/common/Makefile.am 1 addition, 0 deletionsdune/common/Makefile.am
- dune/common/cxx11.hh 10 additions, 0 deletionsdune/common/cxx11.hh
- dune/common/fmatrix.hh 5 additions, 4 deletionsdune/common/fmatrix.hh
- dune/common/fvector.hh 8 additions, 2 deletionsdune/common/fvector.hh
- m4/cxx11_constexpr.m4 28 additions, 0 deletionsm4/cxx11_constexpr.m4
- m4/dune_common.m4 1 addition, 0 deletionsm4/dune_common.m4
dune/common/cxx11.hh
0 → 100644
m4/cxx11_constexpr.m4
0 → 100644
Please register or sign in to comment