Subject: Re: [boost] Interesting variadic template trick
From: Eric Niebler (eniebler_at_[hidden])
Date: 2013-11-18 22:09:22
On 11/18/2013 5:34 AM, Louis Dionne wrote:
> Andrey Semashev <andrey.semashev <at> gmail.com> writes:
>> It requires N instantiations of std::conditional, doesn't it? In that
>> case is it actually faster than the naive recursive instantiation of
> Regarding the number of instantiations, others have already answered.
> Regarding the improvement over a naive or_, have a look at the bottom
> of the gist at ; I updated it with some benchmarks. You will see that
> there is indeed a noticeable improvement.
Clever. Thanks for posting!
-- Eric Niebler Boost.org http://www.boost.org
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk