@Otuk that's basically a struct with a few static fields and a private constructor
Yes and yes, it can be constructed.
From expressing intention perspective an enum class is very clear and concise on what the developer is trying to do.
@Otuk well, C++ is not the right language if you value clearness and conciseness ;)
Ouch! It seems to me, I am not the only one that has a love and hate relationship with c++.
On the side : I think c++ overall still has a better chance to become the most performant-efficient, expressive, modern language compared to a new comer language that has a tough time to gain popularity for use and projects. Yes it has many short comings compared to more recent languages but the modernization effort is real. So keeping a wishlist is also hopeful.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!
Hosting costs are largely covered by our generous supporters on Patreon – thanks for all the help!