Subject: Re: [boost] New, powerful way to use enable_if in C++0x
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2011-04-11 17:28:59
On Mon, Apr 11, 2011 at 5:16 PM, Gevorg Voskanyan <v_gevorg_at_[hidden]>wrote:
> Yes, of course that's very true, I wonder how could I miss that!
> This could be included in the rationale section of the doc to prevent other
> users from being tempted to "simplify" it as I was. :)
For what it's worth, I missed it too! My first approach prior to the
boost::enabler version was exactly as you described and I didn't realize the
problem until I tested it, so yeah, rationale here is probably important. It
is very subtle.
-- -Matt Calabrese
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk