Description
I cannot define static const member field for a struct if they need to be computed from a template parameter struct's static const member field. This godbolt shows what I mean: https://godbolt.org/z/TjWGY9sx8 (uncomment line 21 for error)
It feels silly that this doesn't work, because as showcased in the godbolt above it's totally fine to define the same exact variables I want from within a method, but impossible to do so otherwise. So the current workaround is to redefine every such constant inside every function that wants to use it, which is ugly.
Description I cannot define static const member field for a struct if they need to be computed from a template parameter struct's static const member field. This godbolt shows what I mean: https://godbolt.org/z/TjWGY9sx8 (uncomment line 21 for error)
It feels silly that this doesn't work, because as showcased in the godbolt above it's totally fine to define the same exact variables I want from within a method, but impossible to do so otherwise. So the current workaround is to redefine every such constant inside every function that wants to use it, which is ugly.