I am looking for an array of objects that have the ability to update, decrease, increase, and reset values that are either ints or doubles.
I start by making an abstract class with 4 pure functions (reset, increment, decrement, update) and 2 derived classes that implement those functions.
Unfortunately, this was the wrong path because I’m developing on RP2040, and dynamic cast is not enabled. So, when trying to get the value related to the type handling it I got errors https://arduino.stackexchange.com/questions/55157/dynamic-cast-not-permitted-with-fno-rtti
Now I don’t know how to handle this architecture without using dynamic cast