[Dune-devel] replace `enum { something = 42 }; ` with `constexpr static int something = 42; `

Christoph Grüninger foss at grueninger.de
Tue May 24 01:05:02 CEST 2022


Hi Ansgar,
I like you proposal! I think you are referring to this, which should be 
solved in C++17:
https://stackoverflow.com/questions/37259807/static-constexpr-int-vs-old-fashioned-enum-when-and-why

Bye
Christoph

-- 
L'enjeu est de bâtir la France de nos enfants,
pas de ressasser la France de notre enfance.
                        [Emmanuel Macron, 2022]



More information about the Dune-devel mailing list