Share this postDaily bit(e) of C++Daily bit(e) of C++ | Safe integral comparisonsCopy linkFacebookEmailNotesMoreDaily bit(e) of C++ | Safe integral comparisonsDaily bit(e) of C++ #380, C++20 integral comparison functions that avoid integral promotions.Šimon TóthJan 16, 20242Share this postDaily bit(e) of C++Daily bit(e) of C++ | Safe integral comparisonsCopy linkFacebookEmailNotesMore1ShareC++20 introduced a set of safe integral comparison functions that can compare different integral types without introducing accidental conversions.Click to open in Compiler Explorer.Leave a commentThanks for reading Daily bit(e) of C++! Subscribe for free to receive new posts and support my work.Subscribe
Nice one.