Boost logo

Boost :

Subject: Re: [boost] Interesting variadic template trick
From: Louis Dionne (ldionne.2_at_[hidden])
Date: 2013-11-18 08:34:32

Andrey Semashev <andrey.semashev <at>> writes:

> It requires N instantiations of std::conditional, doesn't it? In that
> case is it actually faster than the naive recursive instantiation of
> or_?

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 [1]; I updated it with some benchmarks. You will see that
there is indeed a noticeable improvement.


Louis Dionne

Boost list run by bdawes at, gregod at, cpdaniel at, john at