Boost logo

Boost :

Subject: Re: [boost] [locale] Review
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2011-04-20 01:53:05


On Apr 19, 2011, at 11:27 AM, Steven Watanabe wrote:
> On 04/19/2011 08:13 AM, Mathias Gaunard wrote:
>>
>> I saw stuff like
>>
>> if(is_linear_iterator<SomeType>::is_linear)
>> ....
>>
>
> And what exactly is wrong with this?
> Most compilers are perfectly capable of
> optimizing away the branch, and it makes
> the code more straightforward than any
> compile time selection mechanism.

In the future, maybe that will be spelled if<...> { ... }

:-D
G


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk