template <auto V>
static constexpr auto force_consteval = V; #define STRINGHASH(str) force_consteval<stringhash(str)> 
Good practices, useful tools, tips and tricks etc. for embedded developers. All in one place.
template <auto V>
static constexpr auto force_consteval = V; #define STRINGHASH(str) force_consteval<stringhash(str)> 
Useful for automating some compile-time initialization in combination with consteval or constexpr: