18 Nov
2013
18 Nov
'13
10:07 a.m.
On Mon, Nov 18, 2013 at 1:58 PM, Jonathan Wakely
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.