It can be hard to follow code using enable_if. Andreas Fertig gives a practical example where C++20’s concepts can be used instead. C++20 Concepts Applied – Safe Bitmasks Using Scoped Enums by Andreas Fertig From the article: The idea is that the bit-operators are often used with enums to create bitmasks. Filesystem permissions are one example. Essentially yo…