Boost logo

Boost :

Subject: Re: [boost] [locale] Review
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-04-19 11:27:54


AMDG

On 04/19/2011 08:13 AM, Mathias Gaunard wrote:
> On 18/04/2011 14:24, Artyom wrote:
>
>>
>>> some compile-time values tested at runtime,
>>> some things that could have reused existing
>>> utilities from Boost,
>>
>> More specific points?
>
> 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 Christ,
Steven Watanabe




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