
19 Aug
2013
19 Aug
'13
7 p.m.
On 19/08/13 17:41, Matt Calabrese wrote:
On Mon, Aug 19, 2013 at 10:40 AM, Mathias Gaunard < mathias.gaunard@ens-lyon.org> wrote:
AFAIK this is indeed the only way to constrain template conversion operators with SFINAE. This is the real use of that trick. But why not just use that trick explicitly in that context?
If you have one approach that works all of the time, such as this macro, you don't need to learn multiple tricks at all.
Those tricks are fairly basic usages of the language, I think you should be comfortable enough with such things if you're writing something as dangerous as a template conversion operator.