Should’t mutable be before variable type? It works for me. Also mutable is a strange thing in c++ and can be put practically anywhere inside a c++ code, so it complies from a compiler perspective but fails from a uht.
Mutable before the variable type works, but that’s not how it “should” be – C++ allows cv-quals in either location, and because declarations are read inner-to-outer, right-then-left, the natural place to put them is between the type and the name (at least if you’re a C programmer.)
Going against that convention did make it work, though!