rancilio-pid / clevercoffee

Do-It-Yourself PID für Espressomaschinen
https://clevercoffee.de
GNU General Public License v2.0
277 stars 144 forks source link

Enable Buidling with C++17 #510

Closed simonspa closed 1 week ago

simonspa commented 1 month ago

...for @LoQue90 :smile_cat:

#include <variant>

std::variant<double, int> test;
test = 3.14;

if(std::holds_alternative<int>(test)) {
   LOG(DEBUG, "Look, an int!");
} else if (std::holds_alternative<double>(test)) {
   LOG(DEBUG, "Ooooh, a tiny double!");
}