Since C++20, the explicit specifier can be conditional. This allows for generic code that permits implicit conversions in safe cases.
In this example, the wrapper for integral types permits implicit conversion only when the destination type can represent the full range of the source type.
Compiler Explorer link: https://compiler-explorer.com/z/9rv5qzM7b