Currently compile flags are passed to the dolfinx library via functions, split as usual in header and source files. These are however always functions that 'hide' a constant - now even in a different compile unit. This may be avoided and made explicit with the use of header based consteval marked functions.
Currently compile flags are passed to the dolfinx library via functions, split as usual in header and source files. These are however always functions that 'hide' a constant - now even in a different compile unit. This may be avoided and made explicit with the use of header based
consteval
marked functions.For example the current declaration
with definition (in .cpp)
should be changed to something like, in header: