Any chance to use enable_if
with a type conversion operator? Seems tricky, since both return type and parameters list are implicit.
dixit the documentation:
There does not seem to be a way to specify an enabler for a conversion operator. Converting constructors, however, can have enablers as extra default arguments.