
13 Apr
2011
13 Apr
'11
2:55 p.m.
On Wed, Apr 13, 2011 at 4:14 AM, Daniel Frey <d.frey@gmx.de> wrote:
That's really nice, but I think the syntax might be improved. How about adding a ::value to enable_if (and the other templates) to allow your example to look like this:
Please reread the thread. I already explained why that doesn't work (see my responses to Gevorg). You need to use a non-type template argument that get's SFINAE'd otherwise you create multiple overloads that differ only in default arguments. -- -Matt Calabrese