Could someone explain to me what the value is in making it really easy to initialize an enum class with a value that is not one of the enumerated values?
Could someone explain to me what the value is in making it really easy to initialize an enum class with a value that is not one of the enumerated values?
I find the author’s writing style immature, sensationalist, and tiresome, but they raise a number of what appear to be solid points, some of which are highlighted above.
I tried reading the article and gave up because life is too short for me to read a tiresome article making points that aren’t even particularly that new.
Yeah, about a decade ago I tried using the Boost Graph Library because I needed a graph library for C++ and eventually had to give up because it was so heavily template-based that I couldn’t figure out how to actually do anything with it.
Is that because of the iron supplement?
Ah. In that case, I look forward to there being a new keyword in C++26 or later that you add to enforce that the enumeration really only does take one of the enumerated values, rather than just being a strongly typed number, since that seems to be the way that the language likes to do things…