
20 Apr
2011
20 Apr
'11
5:53 a.m.
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