enable_if and conversion operator?
问题 Any chance to use enable_if with a type conversion operator? Seems tricky, since both return type and parameters list are implicit. 回答1: 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. 回答2: From the little research I did (and ignoring the c++0x comment from Johannes), my answer is that it depends what you want the enable_if for. If you want the conversion