Is it possible to have an “auto” member variable?
You can, but you have to declare it static and const: struct Timer { static const auto start = 0; }; A working example in Coliru. With this limitation, you therefore cannot have start as a non-static member, and cannot have different values in different objects. If you want different types of start for different … Read more