Stateful metaprogramming can do this without any macros: github.com/DaemonSnake/unconstexpr-cpp20 But as it's very complex, it's probably an overkill in this case.
↧
Comment by HolyBlackCat on Define macro to another macro : a hack to re-declare constexpr variable
↧