Closed Nixes closed 7 years ago
std::variant is perfect but only supported in c++17. So arduino compiler support will take a few years. For now I think I'll have to use something like a tagged union http://en.cppreference.com/w/cpp/language/union
Ended up with a tagged union, works great!
Some ideas so far: