Boost logo

Boost :

Subject: Re: [boost] Interesting variadic template trick
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-11-18 05:07:36

On Mon, Nov 18, 2013 at 1:58 PM, Jonathan Wakely
<jwakely.boost_at_[hidden]> wrote:
> On 18 November 2013 06:54, Andrey Semashev wrote:
>>> No it doesn't. It requires exactly two
>>> instantiations of std::conditional for
>>> all uses of or_.
>> You mean the compiler can optimize multiple instantiations for
>> different T::value values to just unique ones?
> How many unique values of bool do you think there are? :-)

I probably didn't express myself clear. I was asking whether the
compiler is able to optimize N identical instantiations to the cost of
just one.

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